• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Another strange error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another strange error


  • Subject: Re: Another strange error
  • From: Robert Poland <email@hidden>
  • Date: Wed, 01 May 2013 10:13:05 -0600

On May 1, 2013, at 9:55 AM, "koenig.yvan" <email@hidden> wrote:

>
> Le 01/05/2013 à 17:43, Robert Poland <email@hidden> a écrit :
>
>> 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,
>
>
> Hello Robert
>
> I duplicated your script.
> I edited the first copy so that it issue three times  - + command
>
> I ran the edited one to enlarge the window contents.
> It worked well.
>
> Then, I ran the original script and the window contents was reduced flawlessly.
>
> Like you I'm running 10.8.3.
>
> KOENIG Yvan (VALLAURIS, France) mercredi 1 mai 2013 17:55:37


Yvan,

The script runs fine, including the setBounds script, but then after the 999 seconds I usually get the error.

Robert Poland - Fort Collins, CO




 _______________________________________________
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


References: 
 >Another strange error (From: Robert Poland <email@hidden>)
 >Re: Another strange error (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: Re: Another strange error
  • Next by Date: Script Bundle Tool
  • Previous by thread: Re: Another strange error
  • Next by thread: Script Bundle Tool
  • Index(es):
    • Date
    • Thread