getting the path of the front document

Get help using and writing Nisus Writer Pro macros.
Post Reply
js
Posts: 229
Joined: 2007-04-12 14:59:36

getting the path of the front document

Post by js » 2007-05-16 03:21:37

I think Nisus macro language can't return a docment path. So I tried it with an Applescript

Code: Select all

tell application "Nisus Writer Pro public beta"
	set the clipboard to (path of document 1 as text)
end tell
Why does this not work?

User avatar
martin
Official Nisus Person
Posts: 4289
Joined: 2002-07-11 17:14:10
Location: San Diego, CA
Contact:

Post by martin » 2007-05-16 14:41:19

I don't have any advice on AppleScript macros, but you can get the document path using Nisus Macros:

Code: Select all

$path = Document Property “file path”
Write Clipboard $path

js
Posts: 229
Joined: 2007-04-12 14:59:36

Post by js » 2007-05-17 01:37:01

martin wrote:I don't have any advice on AppleScript macros, but you can get the document path using Nisus Macros:

Code: Select all

$path = Document Property “file path”
Write Clipboard $path
Thanks. That was helpful, as always. And it's a fine command to have for a macro that inserts links to other files.

Just wondering: I haven't seen this command so far. Is it documented? Is there a list of the complete set of commands available in the actual beta of NW Pro?

User avatar
rmark
Official Nisus Person
Posts: 428
Joined: 2003-02-11 10:49:05
Location: Solana Beach, CA
Contact:

Post by rmark » 2007-05-17 13:17:54

Such a list should (we've done all we could to limit the creation of new commands), be in the next version of the beta manual. This should get posted sometime on May 17.
Write On!
Mark Hurvitz
Nisus Software Inc.

User avatar
rmark
Official Nisus Person
Posts: 428
Joined: 2003-02-11 10:49:05
Location: Solana Beach, CA
Contact:

Post by rmark » 2007-05-17 14:46:28

Oops.

Sorry for raising expectations here.

It turns out that the version that's got all the new macro commands is not a public beta ("not ready for prime time"). And, therefore the manual that goes with it is not public either.

I'm afraid you'll simply have to be patient as we smooth out all the kinks.

Thank you for sticking with us.
Write On!
Mark Hurvitz
Nisus Software Inc.

Post Reply