• 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: Getting the name of a file from an "alias"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the name of a file from an "alias"


  • Subject: Re: Getting the name of a file from an "alias"
  • From: Timothy Bates <email@hidden>
  • Date: Tue, 12 Jun 2001 13:49:44 +1000

> At 23:15 +0200 6/11/2001, Jan Pieter Kunst wrote:
>> How do I get just the name of a file whose path is known?

On 12/6/01 10:46 AM, "John W Baxter" <email@hidden> wrote:
> tell application "Finder"
> name of x
> end tell

A non Finder-dependent method is to use "info for"

e.g. name of (info for (choose file))

tim
remember - info for is your friend


  • Follow-Ups:
    • Error geetting offset of char in errMsg
      • From: Paul Skinner <email@hidden>
References: 
 >Re: Getting the name of a file from an "alias" (From: John W Baxter <email@hidden>)

  • Prev by Date: Re: Call a perl script from an AppleScript
  • Next by Date: [OS X] applet interfering with logout/shut down
  • Previous by thread: Re: Getting the name of a file from an "alias"
  • Next by thread: Error geetting offset of char in errMsg
  • Index(es):
    • Date
    • Thread