• 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: get path of selected file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get path of selected file


  • Subject: Re: get path of selected file
  • From: Camilla <email@hidden>
  • Date: Wed, 03 Apr 2002 21:57:54 +0100

This from Matt Binkowski - dated 3/4/02 09.27 pm:

> i used to have a handly little script that could retrieve the path of any
> selected file or folder

tell application "Finder" to get selection as string

That will return the path. Up to you what you do with it next, but if you
want to do anything like store it on the clipboard, you should probably
activate the Finder first, as the SysUIServer becomes frontmost when it's
running scripts from the menu.

I only tested that line of script in OS 9, but it should work in X.


Camilla
_______________________________________________
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:
    • Get UNIX path of selected file
      • From: Dave Balderstone <email@hidden>
References: 
 >get path of selected file (From: Matt Binkowski <email@hidden>)

  • Prev by Date: Re: get path of selected file
  • Next by Date: Re: get path of selected file
  • Previous by thread: Re: get path of selected file
  • Next by thread: Get UNIX path of selected file
  • Index(es):
    • Date
    • Thread