• 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: Mon, 13 Sep 2010 06:27:40 -0600

On 13-Sep-2010, at 04:57, Shane Stanley wrote:
>
> Is this_item a path, or is it an alias?

the display dialog line

display dialog "the_item: " & this_item

returns "Cerebus:Users:kreme:Downloads:image.png" so I'm guessing it's an alias. the line that sets it is:

repeat with i from 1 to number of items in added_items
  set this_item to item i of added_items

ah, looks like this might have solved it.

set item_suffix to getSuffix(this_item as text)


On 13-Sep-2010, at 05:38, André Renault wrote:

> You should ask the Finder for the file suffix.

Oh? How? the string 'suffix' doesn't appear in the Finder dictionary (according to the find function).

--
"Reality continues to ruin my life."


 _______________________________________________
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: "Mark J. Reed" <email@hidden>
References: 
 >Re: Getting file suffix (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Getting file suffix
  • Next by Date: Re: Getting file suffix
  • Previous by thread: Re: Getting file suffix
  • Next by thread: Re: Getting file suffix
  • Index(es):
    • Date
    • Thread