• 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: Best practices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best practices


  • Subject: Re: Best practices
  • From: Emmanuel LEVY <email@hidden>
  • Date: Wed, 16 Feb 2011 15:56:28 +0100

I've got one, if you like.

Never use anything else than posix paths. Whenever some command doesn't like posix paths, just insert "posix file" before the posix path.

Emmanuel


On Feb 15, 2011, at 10:44 PM, Stan Cleveland wrote:

On Feb 14, 2011, at 1:11 PM, Luther Fuller wrote:

Never modify a property; Don't use globals.
If you need to store a value between runs, use a preference (.plist) file.

On Feb 15, 2011, at 6:37 AM, Luther Fuller wrote:

Always use aliases, not text paths except where necessary.
Never use a posix path when a colon delimited path will work.

Hi all,

This list is always a great source for AS answers. But the above pearls of wisdom from Luther in the last two days lead me to ask if he (or anyone else) has any other "best practices" for AppleScript. Many on this list might find them instructive.

Stan C.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

_______________________________________________ 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: Best practices
      • From: Shane Stanley <email@hidden>
References: 
 >Re: read stored variables in run only script application (From: "Nigel Garvey" <email@hidden>)
 >Re: read stored variables in run only script application (From: Luther Fuller <email@hidden>)
 >Best practices (From: Stan Cleveland <email@hidden>)

  • Prev by Date: Scripting iTunes UI
  • Next by Date: List View of finder window?
  • Previous by thread: Re: Best practices
  • Next by thread: Re: Best practices
  • Index(es):
    • Date
    • Thread