Re: need some help
Re: need some help
- Subject: Re: need some help
- From: Shane Stanley <email@hidden>
- Date: Sat, 19 Feb 2011 21:04:35 +1100
- Thread-topic: need some help
On 19/2/11 8:21 PM, "Christopher Stone" <email@hidden>
wrote:
> on write_to_file_overwriting(someText, targetFile)
One thing you might (or might not) want to consider is that in
AppleScriptObjC, underscores are significant in handler names (they replace
Cocoa's colons). So if you think you might be taking the plunge at some
stage, use of underscores like this might be a habit to reconsider.
> write someText to resultNumber
Technically that's different from the shell version in that under 10.5 and
later it's writing MacRoman rather than the do shell script's UTF8 (and
before 10.5 the encoding will depend on the class of someText). It won't
matter with "on" and "off", but it might matter with real strings.
Specifying encoding when writing files is probably another one for the best
practices thread.
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden