The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   OS X Developer (http://hintsforums.macworld.com/forumdisplay.php?f=27)
-   -   screen capture package (http://hintsforums.macworld.com/showthread.php?t=104482)

tlarkin 08-25-2009 11:25 AM

Quote:

Originally Posted by regulus6633 (Post 548518)
There's an applescript forum where you can get help specifically on applescript. It sounds like you need more help than I can give you by myself, so post your questions there.
http://macscripter.net/viewforum.php?id=2

If you want to learn more about applescript that website has tutorials. Go here to search the forums and search for "applescript for beginners". These tutorials are short and will teach you the basics. It's how I learned applescript.
http://macscripter.net/search.php

Again, many thanks for your help.

-Tom

tlarkin 08-25-2009 11:32 AM

Oh and I had to edit my script, it seems that the binary logname only captures what user is running the current process and if installed via ARD admin it will log it as root user, so I had to change that variable, here it is:

Code:

#!/bin/bash

#set variables for file name and save path

thedate=`/bin/date -u`
name=`/bin/ls ‑l /dev/console | cut ‑d " " ‑f 4`
path="/private/var/hadmin/Desktop/screenshots"

#execute screen shot

/usr/sbin/screencapture -x $path/"$thedate $name sreen.png"

echo "screen captured"

exit 0



All times are GMT -5. The time now is 05:35 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.