export using applescript
Bruce D'Arcus
bdarcus at fastmail.fm
Wed Feb 12 09:46:35 PST 2003
With some help from Phebe, here's what I came up with, but I am getting
this error from OO:
File /Users/bdarcus/XSLT/opml2web/infiles/website.opml wasn't found.
The thing is, the file does get created as I expect, with just the
above path. What am I doing wrong? Also, I get a feeling this should
be cleaner. Should I be defining an htmlName and inExt and outExt for
use the XSLT?
Bruce
tell application "OmniOutliner"
set docName to the name of first document
set theDelim to AppleScript's text item delimiters
set AppleScript's text item delimiters to "."
set theName to text item 1 of docName
set theExt to "opml"
set opmlName to theName & "." & theExt
save first document in "/Users/bdarcus/XSLT/opml2web/infiles/" &
opmlName as "opml"
end tell
set outFile to transform XML file
("/Users/bdarcus/XSLT/opml2web/infiles/" & opmlName) ¬
using file ("/Users/bdarcus/XSLT/opml2web/outliner.xsl") ¬
saving as file ("/Users/bdarcus/XSLT/opml2web/outfiles/" & theName &
"." & "html")
tell application "Finder" to open outFile
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 5170 bytes
Desc: not available
Url : /mailman/archive/omnioutliner-users/attachments/20030212/078e6fe5/attachment.bin
More information about the OmniOutliner-Users
mailing list