Another strange error
Another strange error
- Subject: Another strange error
- From: Robert Poland <email@hidden>
- Date: Wed, 01 May 2013 09:43:30 -0600
Hi,
I use scripts with Mail and Safari to enlarge text and return to original. Both called from iKey.
The "Larger Text" script works without issue but the revert (see below) usually ends with an error after 999 seconds.
"Command "Revert from LargerText Safari" has not terminated in the defined delay of 999.0 second.."
I assume that the try block is the issue but it does'n error. The setBounds script when called by itself runs without a problem.
I'm currently trying replacing the "run script" with a keystroke but it will be a while before it may or may not error.
(* Revert from LargerText Safari*)
# NOTE: THIS SCRIPT MAY DEPEND ON THE ASObjC Runner.app
set delayTime to 0.3
set keysPressed to true
repeat while keysPressed contains true
tell application "ASObjC Runner"
set keysPressed to properties of modifier keys as list
end tell
delay delayTime
end repeat
tell application "Mail"
activate
tell application "System Events" to tell application process "Mail"
keystroke "-" using command down
delay delayTime
keystroke "-" using command down
delay delayTime
keystroke "-" using command down
delay delayTime
end tell
end tell
try -- return window to normal if necessary
run script POSIX file "/Library/Scripts/Universal Scripts/setBounds" as alias
on error
beep 3
end try
Tia,
Robert Poland
iMac Mid 2011, 12,2
2.7 GHz Intel Core I5, 27”
12 GB Ram, 1TB HD
OS X 10.8.3 (12D78)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden