Re: POSIX vs Macinotosh Path Strings
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