Re: POSIX vs Macinotosh Path Strings
Re: POSIX vs Macinotosh Path Strings
- Subject: Re: POSIX vs Macinotosh Path Strings
- From: Shane Stanley <email@hidden>
- Date: Wed, 18 Nov 2015 10:03:16 +1100
On 18 Nov 2015, at 7:04 AM, Dave <email@hidden> wrote:
>
> Any ideas?
Apart from what others have said about the tell block, building some specifiers in Xcode-based apps is a bit different. You ought to read the chapters called 'AppleScriptObjC Gotchas' I and II.
Basically, you need to use coercion rather than a specifier. So change:
set myNewFullName to POSIX file myFullNamePOSIX as text
to:
set myNewFullName to ((myFullNamePOSIX as POSIX file) as text)
--
Shane Stanley <email@hidden>
<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