Re: Name of file
Re: Name of file
- Subject: Re: Name of file
- From: Skeeve <email@hidden>
- Date: Fri, 11 Jan 2008 18:51:28 +0100
Benedikt Quirmbach wrote:
How can I get the name of this file (without the extension)?
Example:
I choose "MyCSV.csv" and want to get "MyCSV".
No need to ask the finder because standard edition already is able to
handle it:
set thecsvfile to (choose file with prompt "Wählen Sie die CSV-Datei:"
of type {"TEXT"}) as alias
tell (info for thecsvfile)
set nme to name
set ext to name extension
if ext is not "" then
set nme to text 1 thru (-2 - (length of ext)) of nme
end if
end tell
return nme
_______________________________________________
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: | |
| >Name of file (From: Benedikt Quirmbach <email@hidden>) |