My script thus far is:
set _filePath to (path to home folder from user domain as text) & “Dropbox:Application Data:EagleFiler:General:To Import (General)”
tell application “Safari”
set _url to URL in document 1
set _name to ((name of window 1) as string)
tell application “Paparazzi!”
repeat while busy
set _fileName to _filePath & “:” & _name & “.pdf”
save as PDF in _fileName
This seems to work; however, I have two questions:
Is it possible to somehow set the URL when I’m using the “To Import” folder method of importing into EagleFiler? Perhaps by setting metadata on the file (maybe an OpenMeta tag)?
If this works well, I may opt to use this means by default. Is it possible to overwrite the default capture script? I could always assign a different shortcut via FastScripts but was more curious than anything else on this point.
Go easy on my AppleScript. It’s attempts to be a user-friendly language creeps out the developer in me.