Re: scroll area error
Re: scroll area error
- Subject: Re: scroll area error
- From: Deivy Marck Petrescu <email@hidden>
- Date: Wed, 2 Sep 2009 20:53:05 -0400
On Sep 2, 2009, at 19:57, Robert Poland wrote: Thanks Deivy,
My code has been working for a long time with Leopard.
Your suggestion (with Snow Leopard) gives the error; System Events got an error: Can't get window 1 of application process "Finder". Invalid index.
On Sep 2, 2009, at 4:27 PM, Deivy Marck Petrescu wrote: On Sep 2, 2009, at 18:09, Robert Poland wrote: <snip> tell application "System Events" to tell application process "Finder" tell scroll area 1 of splitter group 1 of window 1 to set value of every scroll bar to 0 tell wdw to select {} -- deselect choice end tell
Not really. I believe you forgot splitter group
Bob Poland - Fort Collins, CO
Bob, I checked your original code with Leopard. That is, the first time it failed here it failed in Leopard. Now I checked the code with Snow Leopard and it run OK. The only problem is "wdw", it is not defined the script above.
This script should work both in Leo and in SL (tested!)
tell application "System Events" to tell application process "Finder" tell scroll area 1 of splitter group 1 of window 1 to set value of every scroll bar to 0 end tell
|
_______________________________________________
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