Re: Finder Renaming Unpleasant Surprise
Re: Finder Renaming Unpleasant Surprise
- Subject: Re: Finder Renaming Unpleasant Surprise
- From: "S. J. Cunningham" <email@hidden>
- Date: Sat, 14 Jan 2017 08:06:16 -0500
Thanks, Chris
Steve
------------------
OS X 10.6.8, AppleScript 2.1.2
On Jan 14, 2017, at 2:43 AM, Christopher Stone wrote:
> On Jan 14, 2017, at 00:14, S. J. Cunningham <email@hidden> wrote:
>> Yeah, some other people said the same thing. Looks like it was fixed in a later release than I have. Meanwhile I just wrote a handler to check first.
>
> Hey Steve,
>
> I've been using this one for a long time:
>
> exTant(_path) # Takes an HFS, Posix, or ~/Posix path as input.
>
> -------------------------------------------------------------------------------------------
> --ยป HANDLERS
> -------------------------------------------------------------------------------------------
> on exTant(_path) # Takes an HFS, Posix, or ~/Posix path as input.
> try
>
> if _path is "~" or _path is "~/" then
> set _path to (POSIX path of (path to home folder as text))
>
> else if _path starts with "~/" then
> set _path to (POSIX path of (path to home folder as text)) & text 3 thru -1 of _path
>
> end if
>
> if _path starts with "/" then
> alias POSIX file _path
>
> else
> alias _path
>
> end if
>
> return true
>
> on error
> return false
>
> end try
> end exTant
> -------------------------------------------------------------------------------------------
>
> --
> Take Care,
> Chris
>
> _______________________________________________
> 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
_______________________________________________
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