• 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: POSIX vs Macinotosh Path Strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >POSIX vs Macinotosh Path Strings (From: Dave <email@hidden>)
 >Re: POSIX vs Macinotosh Path Strings (From: Axel Luttgens <email@hidden>)
 >Re: POSIX vs Macinotosh Path Strings (From: Dave <email@hidden>)

  • Prev by Date: Re: AppleScript-ObjC XCode compile errors
  • Next by Date: Re: applescripting sub mailboxes in Mail
  • Previous by thread: Re: POSIX vs Macinotosh Path Strings
  • Next by thread: Re: POSIX vs Macinotosh Path Strings
  • Index(es):
    • Date
    • Thread