• 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: Problem with POSIX paths?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with POSIX paths?


  • Subject: Re: Problem with POSIX paths?
  • From: Dave <email@hidden>
  • Date: Thu, 16 Jun 2016 11:47:23 +0100

Hi Again,

May you open a word document and post what is returned by this short script ?

tell application id "com.microsoft.Word"
activate
full name of document 1
end tell


I get:

"JaundicedOutlook:Documents:TestDocs:Word-Test2.docx"

If its a Saved document or “Document1” if it’s a new document.

I can tell the difference because I test to see if there is a “:” or “/“ in the ID. 

Basically I just want a Unique ID for the Document so I can refer to it from my Objective-C Application. I used a POSIX path because it provides a Unique ID *and* allows me to get at the raw file if I need to. I could pass back the Mac Alias path and then convert it to POSIX in Objective-C, expect the as luck would have it, I can’t use a “:” as part of the identifier in this case, because it is used for something else, so I’d have to convert the “:” to something else before passing it back to the Objective-C App, so instead of doing that, I thought that using the POSIX equivalent would be better all round.

The “full posix name” property seems to work ok, so I think its better to use this and avoid converting.

Thanks for the information below though, it will be handy for other applications, 

All the Best
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

References: 
 >Problem with POSIX paths? (From: Dave <email@hidden>)
 >Re: Problem with POSIX paths? (From: Yvan KOENIG <email@hidden>)
 >Re: Problem with POSIX paths? (From: Dave <email@hidden>)
 >Re: Problem with POSIX paths? (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Problem with POSIX paths? SOLVED
  • Next by Date: Re: How Do I Create class HTML to put on Clipboard?
  • Previous by thread: Re: Problem with POSIX paths?
  • Next by thread: Re: Problem with POSIX paths? SOLVED
  • Index(es):
    • Date
    • Thread