Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.6: Rename screenshots with Automator and AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Rename screenshots with Automator and AppleScript
Authored by: mark hunte on Dec 09, '09 11:57:20AM
The fact that the format thing worked points to you running additions,
There maybe more running that are also a problem.. I never use them, but I think you can check in the Prefs, under plugins. As for the disappearing, do you have some sort of tidy up app, script or folder action running to put file in folders by kind.

The -t part is -t" & captureformat , no space after the t

Also Here is a slightly better script which will take care of any file names you use with spaces in them.

Look at the Event log, to see what the script is doing. You should see something like:
do shell script "screencapture -tpng '/Users/userName/Desktop/Safe 1.png'"

tell me to set thePath to (choose folder)
set thePath to (POSIX path of thePath)
set captureformat to "png"
set defAns to "." & captureformat as string
tell me to display dialog thePath default answer defAns buttons {"Cancel", "OK "} default button 2
copy the result as list to {text_returned, button_pressed}
tell me to (display dialog "set Delay" default answer 2 buttons {"Cancel", "OK "} default button 2)
copy the result as list to {text_returned2, button_pressed2}
set Delay_ to text_returned2 as number
delay Delay_
set apath to (POSIX path of thePath) & text_returned as string
set doit to do shell script ("screencapture -t" & captureformat & space & quoted form of apath as string) 
log ("screencapture -t" & captureformat & space & quoted form of apath as string) 

[ Reply to This | # ]