• 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: 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

  • Follow-Ups:
    • Re: POSIX vs Macinotosh Path Strings
      • From: Dave <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