• 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: changing file creator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing file creator


  • Subject: Re: changing file creator
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 02 May 2002 13:44:49 -0700

On 5/2/02 1:27 PM, "email@hidden" <email@hidden> wrote:

> -- Given: OurFilePath represents a path (E.G. - "Sys HD:Some Folder:Some
> File") as string
> -- Purpose: Swap creator codes to make a simpletext file into a BBEdit File
> -- From: last segment of a larger script that generates dynamic web content
> pages
>
> tell application "Finder"
> set BBEditCreatorCode to "R*ch" as string

"R*ch" already is a string

> set OurFilePath to OurFilePath as alias

You should do this outside the Finder. (And the Finder actually prefers its
own file type but will handle alias if you want it to.)

> set the creator type of OurFilePath to BBEditCreatorCode
> end tell



So this could be done more efficiently as :


tell application "Finder" to set the creator type of file OurFilePath to
"R*ch"

--
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.

References: 
 >Re: changing file creator (From: email@hidden)

  • Prev by Date: Opening the root folder
  • Next by Date: Re: Learning Apple Script
  • Previous by thread: Re: changing file creator
  • Next by thread: Acrobat Catalog
  • Index(es):
    • Date
    • Thread