• 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: LuKreme <email@hidden>
  • Date: Wed, 15 Sep 2010 03:13:18 -0600

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.

 _______________________________________________
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

  • Follow-Ups:
    • Re: Getting file suffix
      • From: KOENIG Yvan <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>)

  • Prev by Date: Re: when is a global not a global?
  • Next by Date: Getting into Adobe Reader
  • Previous by thread: Re: Getting file suffix
  • Next by thread: Re: Getting file suffix
  • Index(es):
    • Date
    • Thread