• 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: Scripting the Location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting the Location


  • Subject: Re: Scripting the Location
  • From: John Delacour <email@hidden>
  • Date: Fri, 29 Aug 2003 00:34:46 +0100

At 5:48 pm -0500 28/8/03, Irwin Poche wrote:
I9m having problems scripting the Location. The script below will work
sometimes. Sometimes it does not. When it doesn9t, UI Browser doesn't show
any choices for Location.

Do you actually type curly quotes into Entourage and get no warning ?!


tell application "Finder" to activate
tell application "System Events"
tell process "Finder"
click menu item "Home" of menu "Location" of menu item
"Location" of menu "Apple" of menu bar 1
end tell
end tell


I find I have to do something like this, which is clearly not the way it should be. I've replaced the names with numbers just so things fit on the line.

tell application "System Events"
tell process "Script Editor"
tell menu bar 1
set netprefs to "Network Preferences" & (ASCII character 201)
click menu item netprefs of menu 1 of menu item 7 of menu 1 of menu 1
end tell
end tell
end tell


JD


.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Scripting the Location
      • From: "John C. Welch" <email@hidden>
    • Re: Scripting the Location
      • From: Paul Berkowitz <email@hidden>
References: 
 >Scripting the Location (From: Irwin Poche <email@hidden>)

  • Prev by Date: Backing up to remote AIX server ...
  • Next by Date: Re: script changes
  • Previous by thread: Scripting the Location
  • Next by thread: Re: Scripting the Location
  • Index(es):
    • Date
    • Thread