Re: Getting file suffix
Re: Getting file suffix
- Subject: Re: Getting file suffix
- From: KOENIG Yvan <email@hidden>
- Date: Wed, 15 Sep 2010 11:43:39 +0200
Le 15 sept. 2010 à 11:13, LuKreme a écrit :
>
> On Sep 14, 2010, at 8:50, KOENIG Yvan <email@hidden> wrote:
>
>> As you may use the instruction :
>>> tell application "Finder" to set myFile to name of myFile
>>
>> it's clear that myFile is not a text object.
>
> It is when I set it to the name I'd the file.
>
>> So, the instruction :
>>> set theSuffix to last text item of myFile
>>
>> will fail.
>
> Nope. Tested with a couple hundred files and it worked perfectly.
Oops,
I missed the fact that you extracted the name in the variable defined on entry.
So yes, as it's a text, it will work.
Yvan KOENIG (VALLAURIS, France) mercredi 15 septembre 2010 11:43:13
_______________________________________________
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