• 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: Setting File & Creator Type access error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is: Setting File & Creator Type access error


  • Subject: Re: Is: Setting File & Creator Type access error
  • From: Philip Aker <email@hidden>
  • Date: Wed, 1 Jul 2009 21:53:34 -0700

On 2009-07-01, at 17:15:03, Paul Berkowitz wrote:

That's not System Events vs. Finder.

It's because your script *tells* the object whereas the first script just
tells the application and tries to set a list or properties 'of' the object.

That's how it works, and always has. You can only set multiple properties -
a list of properties - of an object to a list of values if you tell the
object directly. You can *get* values of a list of properties either way.

At least, that has been my experience over several years. I have just come
upon replies from others that indicate I may have been leading a sheltered
life, and that this behavior may differ from application to application. if
that is indeed the case, I defer to others' greater knowledge.

Could be, but since the Finder is traditionally and overwhelmingly the application in question:

set f to ((path to desktop folder as text) & "test.txt") as alias
tell application "Finder" to tell (document file f)
set {file type, creator type} to {"DISH", "DHAT"}
end tell
info for f

(10.5.7/Intel)

What is bad here is that between System Events, info for, and Finder, there are different non-transferrable terms for 'creator type', when in fact they all refer to the same 32 bits of the low level FSCatalogInfo.finderInfo. 


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

  • Follow-Ups:
    • Re: Is: Setting File & Creator Type access error
      • From: Paul Berkowitz <email@hidden>
    • Re: Is: Setting File & Creator Type access error
      • From: Johnny AppleScript <email@hidden>
References: 
 >Re: Is: Setting File & Creator Type access error; Was: Re: changing the "open with application" value for a file (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Is: Setting File & Creator Type access error; Was: Re: changing the "open with application" value for a file
  • Next by Date: Re: Is: Setting File & Creator Type access error
  • Previous by thread: Re: Is: Setting File & Creator Type access error; Was: Re: changing the "open with application" value for a file
  • Next by thread: Re: Is: Setting File & Creator Type access error
  • Index(es):
    • Date
    • Thread