Finder-Selection-Bug Work-Around
Finder-Selection-Bug Work-Around
- Subject: Finder-Selection-Bug Work-Around
- From: Christopher Stone <email@hidden>
- Date: Wed, 08 Oct 2014 23:34:13 -0500
Hey Folks,
I've been writing scripts lately for people who are not very tech-savvy and don't really understand the Finder-Selection-Bug even after I've told them about it. They test a script I wrote for Mavericks on Mountain Lion or Lion and come back to me about it not working.
So. I'm working on a handler to automagically take care of the problem.
I'm wondering if anyone has done this already and if they've done so more efficiently than my effort.
------------------------------------------------------- on automateFndrSelBugWorkaround() try if ((system attribute "sys2") < 9) then # Finder-selection bug work-around necessary! tell application "SystemUIServer" to activate tell application "Finder" to activate end if end try end automateFndrSelBugWorkaround -------------------------------------------------------
I'm assuming this will error on Snow Leopard, but I can't easily test. In any case since Snow Leopard is unaffected by the bug the handler should gracefully fail even if it does error.
-- 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