Re: POSIX vs Macinotosh Path Strings
Re: POSIX vs Macinotosh Path Strings
- Subject: Re: POSIX vs Macinotosh Path Strings
- From: Steve Mills <email@hidden>
- Date: Tue, 17 Nov 2015 20:23:03 +0000 (GMT)
- X_v_e_cd: 21fd050ba9ba49ea7008db85c6a8d05b
- X_v_r_cd: 51e825d3ce76057ee69d228113d6b3df
On Nov 17, 2015, at 02:06 PM, Dave <email@hidden> wrote:
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?
Works fine for me, but I had to remove the tell Word part, since I don't have it anywhere near my Mac. Maybe take the script out of the tell block and see if it works. Word has been known to screw up the weirdest things. It's horrible.
Sent from iCloud's ridiculous UI, so, sorry about the formatting
_______________________________________________
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