> Does this make sense? Is there an easier way to do this already? Is
> this sort of Folder Action possible? Does it exist already? And if
> not, does anyone want to write it for me :-) ?
In print dialogs, under the "PDF" submenu, you should be able to save
a PDF directly to Yojimbo without leaving intermediate detritus
anywhere:
http://barebones.com/images/bb1/yojimbo/yojimbo-save-PDF.jpg
e
You have Acrobat installed.
This is one of the many reasons I dislike Acrobat.
Steve
I just tried it with that document (I opened that URL in Safari) and
hit Cmd-P, and then from the "PDF" submenu/button chose "Save PDF to
Yojimbo" and it saved to Yojimbo. No errors.
e
> I don't use acrobat anymore. I only use preview. Would uninstalling
> it fix this? Is a work around possible to create a folder action?
Removing Acrobat should fix this.
I haven't written a folder action since the OS 9 days, so I can't
speak with authority, but it seems like an appropriate problem to
solve that way. (Telling Yojimbo to open the pdf will import it, then
you could move the original to the trash)
Another option might be Hazel <http://www.noodlesoft.com/hazel.php>. I
have not used Hazel, but from the product description, it sounds like
it would do what you want (and then some).
Steve
> Another option might be Hazel <http://www.noodlesoft.com/hazel.php>. I
> have not used Hazel, but from the product description, it sounds like
> it would do what you want (and then some).
I heartily recommend Hazel. It's a snap to do this kind of thing with
it. You could have something working in a matter of seconds.
On Feb 6, 2009, at 12:26 PM, Jonathan Scoonover wrote:
> Is a work around possible to create a folder action?
I'm sure a folder action would do the trick as well. So it really
comes down to how much your time is worth and how long it'll take you
to create the folder action. ;-)
-Dennis
> I don't think you really want to do this. It is not equivalent to saving the
> PDF file into Yojimbo. It runs the PDF through OS X's PDF engine as if you'd
> printed it. That changes the PDF, changes the author information and other
> metadata, etc. When I tried it, I also lost the title as well as the URL
> metadata that Safari adds.
If I cared that much about the PDF metadata, then yeah, either a
script or just doing it "by hand" and deleting the intermediate
downloaded file would probably be in order. Generally when I open PDFs
in Safari, however, the metadata in the PDF is the last thing on my
mind.
e
I was wondering if anyone has written an applescript (possibly tied to
a folder action) for directly importing pdf's that also deletes the
--Cut here--
--Begin script Move PDF items to Yojimbo
on adding folder items to thisFolder after receiving addedItems
set doLogging to false --set to true to enable logging to the system log
try
repeat with i from 1 to number of items in addedItems
set addedItem to item i of addedItems
set itemInfo to the info for addedItem
if (alias of the itemInfo is false and the file type of the itemInfo is in {"PDF"}) or (the name extension of the itemInfo is in {"pdf"}) then
my syslog(doLogging, "Adding file " & name of the itemInfo)
tell application "Yojimbo"
set theItem to import addedItem
end tell
tell application "Finder" to delete file addedItem
end if
end repeat
on error errMsg number errorNum
if the errorNum is not -128 then
tell application "Finder"
activate
display dialog errMsg buttons {"Cancel"} default button 1 giving up after 120
end tell
end if
end try
end adding folder items to
on syslog(doLog, msgStr)
if (doLog) then
do shell script "/usr/bin/logger " & "'Move PDF items to Yojimbo: " & msgStr & "'"
return result
end if
end syslog
--End script--
--Cut here--
Removing Acrobat should fix this.