• 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: need some help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: need some help
      • From: Christopher Stone <email@hidden>
References: 
 >Re: need some help (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: need some help
  • Next by Date: Re: need some help
  • Previous by thread: Re: need some help
  • Next by thread: Re: need some help
  • Index(es):
    • Date
    • Thread