Re: Getting file suffix
Re: Getting file suffix
- Subject: Re: Getting file suffix
- From: Emile Schwarz <email@hidden>
- Date: Tue, 14 Sep 2010 11:41:56 +0200
Le 14/09/10 02:06, email@hidden a écrit :
Subject: Re: Getting file suffix
Sorry if I am off topic (I do not read closely the thread and I am in a
hurry now).
I used:
tell application "Finder"
return properties of item 1 of front window
end tell
It turns out that I get properties of a jpeg file.
the name extension holds what you want: "jpg" (in this case).
Is this filing your need ?
Emile
Part of the original question:
I have a folder action I'm working on where I am trying to get the suffix of a file name that has been dropped into the folder
So, if you have a reference of the dropped item, a check of its "name
extension" property will give you the extension (what you called a suffix).
_______________________________________________
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