Hi there!

These scripts are great!

1) Could you get it so you could select *multiple folder collections* (like in Kenneth Kirksey's script where he allows you to select multiple *tags*)?

2) How could you get the script to prompt you whether you would like to encrypt the PDF as well?

I have just cut and pasted the snippets of code from Kenneth and Steve in this thread (http://www.listsearch.com/Yojimbo/Message/index.lasso?3685) together. I couldn't figure out how to do the above after much trial and error - I’m new to Applescripting.

Thanks in advance,
Mark

----------------------------------------------------------
-- Save PDF to Yojimbo and Tag
--
-- Allows you to rename and add tags to a Yojimbo item you add using print
-- to PDF.
--
-- Save as a script to ~Library/PDF Services
----------------------------------------------------------
on open (theFile)

        ----------------------------------------------------------
-- set chooseTagsfromList to true if you want the script to present you with -- a list of tags to pick from. Set it to false if you want to manually enter the
        -- tags. If you manually enter tags, separate tags with commas.
        ----------------------------------------------------------

        set chooseTagsFromList to false

        set theName to text returned of (display dialog "Name:" default answer 
"")
        if not chooseTagsFromList then
                set restoreDelimiters to AppleScript's text item delimiters

                set AppleScript's text item delimiters to ","
                set theTags to text returned of (display dialog "Tags:" default answer 
"")

                set the chosenTagList to every text item of theTags
        end if


        tell application "Yojimbo"
                set allCollections to (name of every folder collection)
set c to choose from list allCollections with prompt "Add PDF to which collection?"

                set allTags to name of every tag
                if chooseTagsFromList then
                        set chosenTagList to choose from list allTags ¬
                                with title ¬
                                "Tags" with prompt ¬
                                ¬
                                        "Choose Tags:" multiple selections 
allowed true ¬
                                with empty selection allowed
                end if
                set n to import theFile
                set name of n to theName
                add n to folder collection named c
                add tags chosenTagList to n
        end tell

        if not chooseTagsFromList then
                set AppleScript's text item delimiters to restoreDelimiters
        end if
end open

_________________________________________________________________
Advertisement: Make shopping exciting. Find what you want at www.eBay.com.au http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Frover%2Eebay%2Ecom%2Frover%2F1%2F705%2D10129%2D5668%2D323%2F4%2F%3Fid%3D6&_t=763807330&_r=email_taglines_EBAY&_m=EXT


--
------------------------------------------------------------------
This message is sent to you because you are subscribed to
 the mailing list <yojimbo-talk@barebones.com>.
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  <http://www.listsearch.com/yojimbotalk.lasso>
Have a feature request, or not sure if the software's working correctly? Please send mail to: <[EMAIL PROTECTED]>

Reply via email to