• 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: Is it a normal behavior ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it a normal behavior ?


  • Subject: Re: Is it a normal behavior ?
  • From: Thomas Fischer <email@hidden>
  • Date: Sun, 02 Oct 2011 18:04:24 +0200

Hello Yvan,

it seems that this is normal in so far as System Events doesn't seem to handle 
set these_files to every file of folder this_folder whose type identifier is in {"public.tiff", "public.jpeg"}
but only
set these_files to every file of folder this_folder whose type identifier is "public.tiff"

I don't know if this helps, but

set this_folder to (choose folder)
tell application "Finder"
set these_files to every file of folder this_folder whose kind is in {"JPEG-Bild", "TIFF-Bild"}
end tell

works.

Cheers
Thomas

Am 02.10.2011 um 12:43 schrieb KOENIG Yvan:

set this_folder to (choose folder) as string
tell application "System Events"
set these_files to every file of folder this_folder whose type identifier is in {"public.tiff", "public.jpeg"}
end tell


 _______________________________________________
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: Is it a normal behavior ?
      • From: Luther Fuller <email@hidden>
    • Re: Is it a normal behavior ?
      • From: KOENIG Yvan <email@hidden>
References: 
 >Is it a normal behavior ? (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Is it a normal behavior ?
  • Next by Date: Re: Is it a normal behavior ?
  • Previous by thread: Re: Is it a normal behavior ?
  • Next by thread: Re: Is it a normal behavior ?
  • Index(es):
    • Date
    • Thread