• 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:42:55 +0000
  • X_v_e_cd: 8fcb8b2daa36c85ae206bd2a10e00b01
  • X_v_r_cd: 50ab301b9039426afb1cb10a4aa0e9cb

> On 17 Nov 2015, at 20:23, Steve Mills <email@hidden> wrote:
>
> 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

That was it! Thanks a lot!



 _______________________________________________
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: 
 >Re: POSIX vs Macinotosh Path Strings (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: POSIX vs Macinotosh Path Strings
  • Next by Date: Re: applescripting sub mailboxes in Mail
  • Previous by thread: Re: POSIX vs Macinotosh Path Strings
  • Next by thread: Email to Script Debugger or Script Editor
  • Index(es):
    • Date
    • Thread