osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: The .applescript file format - msg#00003

List: applescript-implementors

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index

On Feb 11, 2011, at 2:36 PM, Shane Stanley wrote:

> Is saving files as UTF8 fine for .applescript? Do they need a BOM? Or should
> they be MacRoman encoded if that's possible?


Chris Nebel answers:

> We've never bothered to specify a particular encoding for .applescript files;
> it's merely defined as "text", and it's up to the consumer to figure out the
> right encoding. All the system components will recognize a UTF-16 BOM;
> osascript(1) and the underlying OSALoadFile API (but not AppleScript Editor)
> will recognize UTF-8; otherwise the file is presumed to be in the primary
> system encoding.
>
> --Chris N.


So, you should probably either use UTF-16 or UTF-8 with a BOM in both cases.

--
Chris Page

The other, other AppleScript Chris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list
(Applescript-implementors@xxxxxxxxxxxxxxx)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-implementors/maillists%40codeha.us

This email sent to maillists@xxxxxxxxx

Thread at a glance:

Previous Message by Date:

The .applescript file format

Is saving files as UTF8 fine for .applescript? Do they need a BOM? Or should they be MacRoman encoded if that's possible? -- Shane Stanley <sstanley@xxxxxxxxxxxxxxxxx> 'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/> _______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-implementors mailing list (Applescript-implementors@xxxxxxxxxxxxxxx) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-implementors/maillists%40codeha.us This email sent to maillists@xxxxxxxxx

Next Message by Date:

Re: The .applescript file format

Thanks, Chris. -- Shane Stanley <sstanley@xxxxxxxxxxxxxxxxx> 'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/> _______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-implementors mailing list (Applescript-implementors@xxxxxxxxxxxxxxx) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-implementors/maillists%40codeha.us This email sent to maillists@xxxxxxxxx

Previous Message by Thread:

The .applescript file format

Is saving files as UTF8 fine for .applescript? Do they need a BOM? Or should they be MacRoman encoded if that's possible? -- Shane Stanley <sstanley@xxxxxxxxxxxxxxxxx> 'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/> _______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-implementors mailing list (Applescript-implementors@xxxxxxxxxxxxxxx) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-implementors/maillists%40codeha.us This email sent to maillists@xxxxxxxxx

Next Message by Thread:

Re: The .applescript file format

Thanks, Chris. -- Shane Stanley <sstanley@xxxxxxxxxxxxxxxxx> 'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/> _______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-implementors mailing list (Applescript-implementors@xxxxxxxxxxxxxxx) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-implementors/maillists%40codeha.us This email sent to maillists@xxxxxxxxx
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!