• 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: applescript-users digest, Vol 3 #190 - 16 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applescript-users digest, Vol 3 #190 - 16 msgs


  • Subject: Re: applescript-users digest, Vol 3 #190 - 16 msgs
  • From: email@hidden
  • Date: Wed, 27 Feb 2002 00:41:59 EST

fearghal:

Assuming that your script is saved as an application, "path to me" will
return its path as an alias. And the Finder has a handy "container" object
that returns the path to the containing directory. Thus:

tell application "Finder" to open container of (path to me)

Ought to do the trick...

Robert Kyle
Star Tribune
Minneapolis



<< i have a folder called "INSTALLER" and inside that i have a folder called
"SCRIPTS", inside scripts i need to have an applescript that will open the
folder "INSTALLER"... to make matters complicated, the folder will not
always be called "INSTALLER" - it may have a different name and also the
location of the folder may vary.. this means that i have to get the path and
the name of the folder dynamically at the start of the script and then use
them to open the folder.>>
_______________________________________________
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.

  • Prev by Date: Re: opening parent folder....
  • Next by Date: Re: string literals passwords in run only applications
  • Previous by thread: Re: Email archive ?
  • Next by thread: Loading an external image into an image view object
  • Index(es):
    • Date
    • Thread