Re: memory lapse
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