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

Re: memory lapse


  • Subject: Re: memory lapse
  • From: Steve Mills <email@hidden>
  • Date: Thu, 13 Apr 2017 19:52:39 +0000 (GMT)

On Apr 13, 2017, at 02:26 PM, Christopher Stone <email@hidden> wrote:

Here's yours:

set dropBoxAlias01 to POSIX file ((POSIX path of (path to home folder)) & "Dropbox") as alias

It shortens to this:

set dropBoxAlias02 to ((path to home folder as text) & "Dropbox") as alias

Rule-of-the-thumb – never mix and match HFS Paths and POSIX Paths unless there's a distinct need.
Hey Steve,

Yeah, I would've refactored it had I been paying attention. :)

Sent from iCloud's ridiculous UI, so, sorry about the formatting

 
 _______________________________________________
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

References: 
 >Re: memory lapse (From: Christopher Stone <email@hidden>)

  • Prev by Date: Applescript Users List Archives Back Up
  • Next by Date: display notification
  • Previous by thread: Re: memory lapse
  • Next by thread: Re: memory lapse
  • Index(es):
    • Date
    • Thread