Re: Getting file suffix
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