• 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: scroll area error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scroll area error


  • Subject: Re: scroll area error
  • From: Robert Poland <email@hidden>
  • Date: Thu, 3 Sep 2009 16:45:13 -0600

You're right Deivy, my snippet had too much in it.

Your suggestion does indeed work.


On Sep 2, 2009, at 6:53 PM, Deivy Marck Petrescu wrote:


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




Deivy Petrescu
email@hidden


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


Deivy Petrescu
email@hidden






 _______________________________________________
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: 
 >scroll area error (From: Robert Poland <email@hidden>)
 >Re: scroll area error (From: Deivy Marck Petrescu <email@hidden>)
 >Re: scroll area error (From: Robert Poland <email@hidden>)
 >Re: scroll area error (From: Deivy Marck Petrescu <email@hidden>)

  • Prev by Date: Lists and writing to file
  • Next by Date: make with properties
  • Previous by thread: Re: scroll area error
  • Next by thread: Users folder has big problems
  • Index(es):
    • Date
    • Thread