• 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: Set creator code of a package don't work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set creator code of a package don't work


  • Subject: Re: Set creator code of a package don't work
  • From: Thomas <email@hidden>
  • Date: Tue, 26 Nov 2002 22:27:08 +0100

Ops, sorry I made the mistake writing my code in Mail, I wanted to write :

tell app "Finder"
set creator type of file "the file path" to "something"
end tell

This really doesn't work for a package file like .rtfd text files but this code work for standard files.
So is this normal ?

Thanks Thomas

Paul Berkowitz wrote :

Yes. You seem to have asked for the creator type of "a string" to be set.
The Finder will only change creator types of files, not strings. (It's one
of the few coercions the Finder doesn't do.) Have you tried:

tell app "Finder"
set creator type of file "filePath here" to "something"
end tell


Also "something" should be a real creator type, of course.

--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Set creator code of a package don't work
      • From: John Delacour <email@hidden>
    • Re: Set creator code of a package don't work
      • From: Matthew Smith <email@hidden>
References: 
 >Re: Set creator code of a package don't work (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Create variables from the script ?
  • Next by Date: Re: Get path to a chosen folder
  • Previous by thread: Re: Set creator code of a package don't work
  • Next by thread: Re: Set creator code of a package don't work
  • Index(es):
    • Date
    • Thread