On Jun 28, 2012, at 9:10, humanengr wrote:
> For storing files on Dropbox, etc., I had been variously saving as pdf-embed
> or pdfd. Adding the possibility of further annotating on iOS (say, with
> GoodReader) constrains the choice to pdf-embed.
>
> In an effort to embed the foremost doc more conveniently (keystroke and
> cursor-movement wise) than File:Export-dialog-menu selection, I wrote an
> Applescript and call it with a FastScript shortcut:
>
>
> tell application "Skim"
>
> set _filename to first document's file as string
>
> if _filename ends with ".pdf" then
>
> save first document
>
> set cmdPath to "/Applications/Skim.app/Contents/SharedSupport/skimpdf"
>
> do shell script (quoted form of cmdPath) & " embed " & quoted form of POSIX
> path of _filename
>
> close first document saving yes -- remove this step to keep the file open
>
> tell application "Finder" to say "embedded"
>
> else
>
> tell application "Finder" to say "not a pdf"
>
> end if
>
> end tell
>
> Similarly, to unembed I use the following with another FastScript shortcut:
>
> tell application "Skim"
>
>
>
> set _filename to first document's file as string
>
>
>
> if _filename ends with ".pdf" then
>
>
>
> save first document
>
>
>
> convert notes first document
>
>
> tell application "Finder" to say "unembedded"
>
>
> else
>
>
>
> tell application "Finder" to say "not a pdf"
>
>
> end if
>
>
> end tell
>
>
> For those storing in the cloud and moving back-and-forth to iOS or other
> annotaters, the only way I've thought of that might be more convenient would
> be to include a preference to 1) change "Save" to "Save as Embedded" and 2)
> automatically unembed each pdf on opening.
>
> This situation is a bit different than discussed below, given that the format
> remains pdf.
>
> humanengr
If you save an open document using AppleScript, I strongly advise you to use
the "save" AppleScript command rather than an using a shell script. The shell
script is a compromise that does not do exactly the same as Skim for embedding,
that was developed for the case where you don't want to have to open the
document and/or launch the app. The command is something like
save as "PDF With Embedded Notes" in theFile
Christiaan
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Skim-app-users mailing list
Skim-app-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-users