• 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 only the name of the file, instead of the whole path!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get only the name of the file, instead of the whole path!


  • Subject: Re: Get only the name of the file, instead of the whole path!
  • From: KOENIG Yvan <email@hidden>
  • Date: Wed, 16 Jan 2008 23:15:12 +0100


Le 16 janv. 2008 à 23:03, Mark J. Reed a écrit :

Don't file objects have a "name" property that is exactly what the OP
is looking for?  Is that only in the Finder?


If I made no mistake, Standard Additions give us the ability to get the name as a property of the files information.

So we must extract it from these infos.

Something like:

set aFile to "Macintosh HD:Users:yvankoenig:Desktop:icônes_128++.app" as alias
set aName to name of (info for aFile)



Yvan KOENIG _______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: Get only the name of the file, instead of the whole path! (From: "Stockly, Ed" <email@hidden>)
 >Re: Get only the name of the file, instead of the whole path! (From: KOENIG Yvan <email@hidden>)
 >Re: Get only the name of the file, instead of the whole path! (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Get only the name of the file, instead of the whole path!
  • Next by Date: Re: Folder Action not working
  • Previous by thread: Re: Get only the name of the file, instead of the whole path!
  • Next by thread: Re: Get only the name of the file, instead of the whole path!
  • Index(es):
    • Date
    • Thread