• 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: 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




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

  • Follow-Ups:
    • Re: scroll area error
      • From: Robert Poland <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>)

  • Prev by Date: Re: Rép: date/Snow Leopard changed
  • Next by Date: Re: load file statement not finding files with Snow Leopard
  • Previous by thread: Summary: scroll area error
  • Next by thread: Re: scroll area error
  • Index(es):
    • Date
    • Thread