• 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: 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
  • Prev by Date: Re: set vs copy?
  • Next by Date: Re: set vs copy?
  • Previous by thread: Re: Getting file suffix
  • Next by thread: Getting the maximum value and minimal values in a list
  • Index(es):
    • Date
    • Thread