Skip to main content
Known Participant
March 14, 2009
Question

Is it possible to create droplet?

  • March 14, 2009
  • 6 replies
  • 14536 views
Is it possible to create a droplet in "illustrator cs"?
This topic has been closed for replies.

6 replies

Known Participant
March 26, 2009
Thanks for your response.
Participant
March 26, 2009
You could try doing a batch conversion.
Start by creating an action (actions are listed under the the window menu).
Once you've created an action you can then run it as a batch.
Select the action you have created.
Next click the upper right corner of the actions panel and select batch from the drop down menu.
Locate your source folder and select a destination, then hit okay.
claidheamdanns
Participating Frequently
July 24, 2009

Okay, but that is not really a droplet. In Photoshop you can create droplets out of your actions and it generates an miniature program that you save to your hard drive. From then on, all files dropped on that mini-program are submitted to the step outlined in the action (hence the name droplet). I've also looked for a way to do this in Illustrator CS4 and have not found a way.

Larry G. Schneider
Community Expert
Community Expert
July 24, 2009

The Batch menu item is available in AICS4 as well as CS3. You can't save it as a droplet but it can perform the action on a whole folder of files.

Known Participant
March 16, 2009
Yes, i need for windows.
Participating Frequently
March 16, 2009
I only know how to achieve this on a Mac using AppleScript. I believe you're on Windows?
Participant
December 9, 2009

hello, i want to create an "action droplet" in illustrator (mac os). the results i want to get as output is a vectorised ai file (outlined) and a pdf from my ai file as input.  would really appreciate if you can help me out.

thx

regards,

Tesh

Participating Frequently
December 11, 2009

It would be nice for a lot of things in scripting to be more standardised across the applications but it ain't goin to happen.

Here is my take on Sonic's AppleScript Droplet (I've gone none POSIX and used plain old HFS paths)

on open FileList

repeat with ThisFile in FileList

tell application "Adobe Illustrator"

open ThisFile

set docRef to the current document

tell docRef

set docName to name of docRef

set docPath to file path

set docParent to my getParentFolder(docPath)

set docBaseName to my getBaseName(docName)

convert to paths every text frame

embed every placed item

set newFileName to docParent & docBaseName & ".pdf"

save in file newFileName as pdf with options ¬

{class:PDF save options, compatibility:Acrobat 5, preserve editability:true}

close saving no

end tell

end tell

end repeat

end open

-- Returns a file paths parent directory as string

on getParentFolder(fPath)

tell application "Finder"

set parentFolder to container of fPath as string

end tell

return parentFolder

end getParentFolder

-- Returns the document name without extension (if present)

on getBaseName(fName)

set basename to fName

repeat with idx from 1 to (length of fName)

if (item idx of fName = ".") then

set basename to (items 1 thru (idx - 1) of fName) as string

exit repeat

end if

end repeat

return basename

end getBaseName


either that or ...

on open fLs
    repeat with file_ in fLs
        tell application "Adobe Illustrator"
            open file_
            convert to paths (every text frame of document 1)
            embed (every placed item of document 1)
            tell application "Finder" to set wDir to (get folder of file_)
            save current document in file ((wDir as string) & ":export.pdf") as pdf with options {class:PDF save options, compatibility:Acrobat 5, preserve editability:true}
            close document 1 saving yes
        end tell
    end repeat
end open

... save it as an application and drop any illustrator files on it ... it should outline your fonts and embed any images you may have ...

Choose what version fits your needs ... i tried to comply with Mark's approach as last time you encountered problems with the shell command.

hope it helps;

cheers;

Known Participant
March 16, 2009
Could you please provide me the steps how to create the droplet in "illustrator cs".
Participating Frequently
March 14, 2009
Yes.