Re: temporary items
Re: temporary items
- Subject: Re: temporary items
- From: Christopher Stone <email@hidden>
- Date: Sat, 20 Aug 2011 13:42:10 -0500
On Aug 20, 2011, at 12:49, Luther Fuller wrote: I don't know why opening the window of the temporary items folder makes the script work correctly, but it does. And it shouldn't. I'm thinking I should file a bug report on this and let Apple figure it out.
______________________________________________________________________
Hey Luther,
I've noticed some oddball occurrences where a script supposed to operate on a selection in the front window fails. If you click in the window or do something to make the OS notice which window is in front it works again.
I don't know if these two issues are related, but they might be.
This is one such script that fails intermittently:
tell application "Finder" try set sel to selection as alias list if sel ≠ {} then repeat with i in sel set label index of i to 6 end repeat end if on error errMsg number errNum beep display dialog "Error: " & errMsg & return & "Error Number: " & errNum end try end tell
I'm running this from FastScripts with a keyboard shortcut.
The next time it happens I'll try opening the script and seeing if I can track the error.
I first noticed this with moveAddict shortly after switching to Lion. Presumably it is using Cocoa calls and not Applescript, so this would seem to be a pervasive and nasty little bug.
-- Best Regards, Chris
|
_______________________________________________
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