Re: Name of file
Re: Name of file
- Subject: Re: Name of file
- From: demski <email@hidden>
- Date: Fri, 11 Jan 2008 17:15:54 +0100
Am 11.01.2008 um 16:49 schrieb KOENIG Yvan:
set thecsvfile to (choose file with prompt "Wählen Sie die CSV-
Datei:" of type {"TEXT"}) as alias
tell application "Finder"
try
set xt to name extension of thecsvfile
set nn to name of thecsvfile
set nn to text 1 thru -((length of xt) + 2) of nn
set name of thecsvfile to nn
end try
end tell
I had just hacked in my (worse) solution, as your answer arrived,
yvan...
But, I have a little question here:
shouldn't there be
set nn to text 1 thru -((length of xt) + 1) of nn --< +1 instead
of 2 ??
when I try it, there seems to be always the last letter missing...
Am I blind to something?
greetz, demski
_______________________________________________
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