Re: Get only the name of the file, instead of the whole path!
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