• 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: Dave <email@hidden>
  • Date: Tue, 17 Nov 2015 20:04:33 +0000

> On 17 Nov 2015, at 19:54, Axel Luttgens <email@hidden> wrote:
>
>
>> Le 17 nov. 2015 à 20:46, Dave a écrit :
>>
>> Hi,
>>
>> I know this has come up before but I can’t find the solution. I have a POSIX Path String and I want convert it to a Macintosh Path String, e.g.
>>
>> From: 	"/Users/Excession/Desktop/Bollox.docx"
>> To:	“JaundicedOutlook:Users:Excession:Desktop:Bollox.docx”-
>
> Hello Dave,
>
> You may try
>
> 	POSIX file "/Users/Excession/Desktop/Bollox.docx" as text

I tried this:

tell application id "com.microsoft.Word"
	activate

	set myFullName to "JaundicedOutlook:Users:Excession:Desktop:Bollox.docx"
	set myFullNamePOSIX to the POSIX path of myFullName
	display dialog myFullNamePOSIX				—Displays /Users/Excession/Desktop/Bollox.docx

	set myNewFullName to POSIX file myFullNamePOSIX as text
	display dialog myNewFullName				—Displays Blanks dialog
tell

But the myNewFullName is not set, e.g. is blank when it is displayed?

Any ideas?

Cheers
Dave


 _______________________________________________
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: POSIX vs Macinotosh Path Strings
      • From: Shane Stanley <email@hidden>
References: 
 >POSIX vs Macinotosh Path Strings (From: Dave <email@hidden>)
 >Re: POSIX vs Macinotosh Path Strings (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: POSIX vs Macinotosh Path Strings
  • Next by Date: Re: POSIX vs Macinotosh Path Strings
  • Previous by thread: Re: POSIX vs Macinotosh Path Strings
  • Next by thread: Re: POSIX vs Macinotosh Path Strings
  • Index(es):
    • Date
    • Thread