• 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: How to manage image-list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to manage image-list


  • Subject: Re: How to manage image-list
  • From: Philip Aker <email@hidden>
  • Date: Fri, 12 Jun 2009 11:16:55 -0700

On 2009-06-12, at 10:57:07, Luther Fuller wrote:

Perhaps you should use the 'type identifier' in System Events.
A disk image file has type identifier = public.disk-image,
while an image file has type identifier = public.image

Yes, I think that would be a more direct and efficient approach.


set fold to (choose folder)
set name_key to "123-456-78"
set prefix to (words of name_key as text) -- "12345678"
tell application "System Events"
every file of fold whose name begins with prefix and kind contains "image"
end tell


A shy retiring list member has sent me a note to say the above will also snag items whose kind is "Disk image". So if that could be the case, a change will be necessary:


every file of fold whose name begins with prefix and kind contains "image" and kind does not contain "Disk"


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
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
References: 
 >Re: How to manage image-list (From: "Pascal van den Bulck" <email@hidden>)
 >Re: How to manage image-list (From: Philip Aker <email@hidden>)
 >Re: How to manage image-list (From: Philip Aker <email@hidden>)
 >Re: How to manage image-list (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: How to manage image-list
  • Next by Date: Re: How to manage image-list
  • Previous by thread: Re: How to manage image-list
  • Next by thread: Re: How to manage image-list
  • Index(es):
    • Date
    • Thread