• 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: Getting file suffix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Getting file suffix (From: Shane Stanley <email@hidden>)
 >Re: Getting file suffix (From: LuKreme <email@hidden>)
 >Re: Getting file suffix (From: "Mark J. Reed" <email@hidden>)
 >Re: Getting file suffix (From: LuKreme <email@hidden>)
 >Re: Getting file suffix (From: KOENIG Yvan <email@hidden>)
 >Re: Getting file suffix (From: LuKreme <email@hidden>)

  • Prev by Date: Click the app icon in Doc using applescript
  • Next by Date: Re: Illustrator CS4 hierarchical menus
  • Previous by thread: Re: Getting file suffix
  • Next by thread: Re: Getting file suffix
  • Index(es):
    • Date
    • Thread