Re: changing file creator
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.