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

Re: name of file


  • Subject: Re: name of file
  • From: "Gary (Lists)" <email@hidden>
  • Date: Mon, 18 Jul 2005 06:49:58 -0400

"Wayne Melrose" wrote:

> Hi,
>
> I'm using a folder action to move a file around, and I would really
> like to be able to get the name of the file without using the Finder.
>
> I can get the path to the file without the finder but not the name by
> itself.

'info for' is the Finder-less way to access some information about a file.

set f to (choose file)
set nfo to info for f

name of nfo
--> "Z39-85.pdf"

-- or with an explicit 'get'
name of (get info for f)

--
Gary

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >name of file (From: Wayne Melrose <email@hidden>)

  • Prev by Date: name of file
  • Next by Date: Re: what's the ascii for the escape key, and bonus question
  • Previous by thread: name of file
  • Next by thread: TextEdit script
  • Index(es):
    • Date
    • Thread