Re: AppleScript (*.scpt) file encoding
Re: AppleScript (*.scpt) file encoding
- Subject: Re: AppleScript (*.scpt) file encoding
- From: Chris Espinosa <email@hidden>
- Date: Tue, 10 Aug 2004 10:31:43 -0700
On Aug 9, 2004, at 10:07 AM, goochrules! wrote:
I have an AppleScript file (*.scpt) that opened just fine in Xcode
1.2, but in 1.5 seems to be displayed with incorrect encoding.
Opening the file with the finder (i.e., Script Editor.app) properly
presents the contents of the file. I've tried re-interpreting the
file as UTF-8, UTF-16 and many of the 'Western' encodings, all to no
avail. The only differnce between most encodings is the default
character for what I guess is byte codes that are not understood.
Has anyone else noticed this?
Are you perhaps thinking of .applescript source files? These work
correctly in 1.2 and 1.5; they invoke the AppleScript editor in Xcode,
providing automatic reformatting and syntax coloring for AppleScript
text.
.scpt files are compiled binaries (bytecodes, as you point out above.)
They are not text files so they do not and should not have a text
encoding. (In fact, they shouldn''t even be shown by the text editor
at all.) This is not changes from 1.2.
If you want to get the source from a .scpt file into the Xcode editor,
open the .scpt in the Script Editor, copy the source, then make a new
.applescript file in Xcode and paste it in.
Chris
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.