• 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: Shane Stanley <email@hidden>
  • Date: Sun, 02 Oct 2011 22:42:09 +1100

On 02/10/2011, at 9:43 PM, KOENIG Yvan wrote:
>
> set these_files to every file of folder this_folder whose type identifier is in {"public.tiff", "public.jpeg"}

I've found collections in whose clauses unreliable for quite a while. I had several scripts that broke because of a change in AS behavior like this in, I think, 10.6 -- although it could have been earlier. I now always use the form:

set these_files to every file of folder this_folder whose type identifier is "public.tiff" or type identifier is "public.jpeg"

--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

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

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