Applescript: get path

Bruce D'Arcus bdarcus at fastmail.fm
Fri Mar 21 07:43:49 PST 2003


On Friday, March 21, 2003, at 10:27  AM, Jonathan Lewis wrote:

> which isn't useful for me as I want the results of the script to be 
> automatically saved in the same folder as the frontmost OO document. I 
> could navigate to the folder every time, but that rather defeats the 
> point of writing a script.

I was just thinking the code would help you figure out how to get what 
you want.  You can look in the archives from about six weeks ago for a 
discussion of some of this stuff.

> By the way, was I the only one to find that the OO2Word script didn't 
> work as advertised in the Word Export Tutorial, i.e. saving a .doc 
> file on the desktop? The only  file that appeared anywhere on my 
> machine was an .xml file in the trash. On the point of giving up, I 
> opened the Convert to Word Doc script in the Script Editor and 
> re-compiled it, at which point the above line sprang into action. 
> Since then I get an .html file (though not a .doc file) in the 
> specified folder that Word reads very happily.

Two things:

1) Come to think of it, yes: the script as downloaded (I have a similar 
one myself) doesn't work for me.  I'll try recompiling.

2) The code it is supposed to create is indeed HTML. It uses some CSS 
magic to force Word to apply its internal styles.  That said, it should 
use the .doc extension probably.

Bruce




More information about the OmniOutliner-Users mailing list