• 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: problem with POSIX path of Š
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with POSIX path of Š


  • Subject: Re: problem with POSIX path of Š
  • From: Jim Underwood <email@hidden>
  • Date: Tue, 13 Sep 2016 20:35:08 +0000
  • Thread-topic: problem with POSIX path of Š

I get the wanting to understand part, but from a practical point of view, if you know you need the POSIX path, why not just create it up front, where you are already outside of a "tell block"?



set tempFolder to POSIX path of (path to documents folder) as text





Best Regards,

Jim Underwood
aka JMichaelTX


From: <applescript-users-bounces+jmichael=email@hidden> on behalf of Yvan KOENIG <email@hidden>
Date: Tue, Sep 13, 2016 at 3:23 PM
To: "ASUL (AppleScript)" <email@hidden>
Subject: Re: problem with POSIX path of …

So, let’s cheat by using the terminology of an application known not to have the slightest idea about a "POSIX path":
set tempFolder to (path to documents folder) as text
tell application "System Events"
using terms from application "TextEdit"
POSIX path of tempFolder
end using terms from
end tell
and one now gets the same behavior as with that less convoluted one:
set tempFolder to (path to documents folder) as text
POSIX path of tempFolder
(in both cases, the internal code for POSIX path is now 'psxp')
HTH,
Axel

Thanks Axel

This is a perfect answer : explanation and workaround in a single message.
You made the point.

 _______________________________________________
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

  • Follow-Ups:
    • Re: problem with POSIX path of Š
      • From: Yvan KOENIG <email@hidden>
References: 
 >problem with POSIX path of … (From: Yvan KOENIG <email@hidden>)
 >Re: problem with POSIX path of … (From: Axel Luttgens <email@hidden>)
 >Re: problem with POSIX path of … (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: problem with POSIX path of …
  • Next by Date: Re: problem with POSIX path of Š
  • Previous by thread: Re: problem with POSIX path of …
  • Next by thread: Re: problem with POSIX path of Š
  • Index(es):
    • Date
    • Thread