• 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: Craig Sutherland <email@hidden>
  • Date: Fri, 29 Aug 2003 23:22:50 -0500

Irwin-

The dictionaries tell what different apps can do in Applescript. Nowhere in the Finder Applescript dictionary is a reference to setting network preferences. It is as if you want the Finder to create a database or web page. Nope, use the right application. The Network pane of System Prefs is the GUI interface to OS X network configurations.

Asking again, have you looked in the dictionaries. If those are greek to you, then OK, there are resources to help with that.

The Location menu item is in the Apple menu, not the Finder menu. The Finder menu has:
About Finder
Preferences
Empty Trash
yadda
These are all events or commands in the Finder dictionary.

The Apple menu has commands for several apps- some are Finder commands, some are System Pref commands (or events). When the Mail.app is active, the Apple menu is still there--- nothing to do with the Finder...zip.

I understand what you're saying about the Finder and Systems Preferences.

But you are doing essentially what I'm doing, setting the Location from the
Finder's menu. That is what I have found to be unreliable. Sometimes it
works, sometimes it doesn't. When it has not worked UI Browser show no
choices available for the Location menu.
The original script I sent to you made a list of the locations that were available in the Network Pref Pane, and presented that for the user to choose a location. If there were only one location or no locations (??) then the script identified that situation and either trapped the error or reported to the user. That was all the stuff that you asked me to take out to make it "simple".


Also, what would be the reason for using Systems Preferences to determine
the current Location and then decide if it was to be changed? That takes
longer than just setting it to what it is going to be (or all ready is).
The reason to use System Prefs is that you indicated your method was not reliable. GUI scripting is not faster, it just enables scripting some apps and some aspects of other apps that don;t have applescript hooks built in.

I'm trying to see where I am not being clear or where you are having trouble undertanding this- applescript takes a while to "get". So keep asking :-).

Craig
--
Groovin' to Boogie Woogie by Count Basie off of Kansas City: Swing, Blues, Jive & Boogie
_______________________________________________
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.
References: 
 >Re: Scripting the Location (From: Irwin Poche <email@hidden>)

  • Prev by Date: Re: Pic in Mail-
  • Next by Date: Safari: getting name of document
  • Previous by thread: Re: Scripting the Location
  • Next by thread: Re: Scripting the Location
  • Index(es):
    • Date
    • Thread