Re: selection bug in Finder
Re: selection bug in Finder
- Subject: Re: selection bug in Finder
- From: Christopher Stone <email@hidden>
- Date: Thu, 17 Jan 2013 18:20:14 -0600
On Jan 17, 2013, at 17:32, Shane Stanley < email@hidden> wrote: On 17/01/2013, at 12:11 PM, Christopher Stone < email@hidden> wrote: The UI blinks
Is it worth adding something like:
if target of Finder window 1 = item 1 of (get selection) then -- do workaround
______________________________________________________________________
Hey Shane,
That method isn't guaranteed to work with every means of triggering the bug.
I did something like this for a while:
tell application "Finder" set fWinTarget to target of front window as text set _sel to selection as alias list set _parent to (parent of item 1 of _sel) as text if fWinTarget ≠ _parent then # Employ Finder-bug-work-around end if end tell
But I finally decided it was worth having the Finder blink every time, because this proved to me that my script was working correctly.
Every so often I have to turn off the work-around while editing a script, and I sometimes forget to turn it back on. If the script doesn't blink I know I've goofed.
-- 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