Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Creating a script to save as a legacy (vers08) .ai

Community Beginner ,
Sep 28, 2011 Sep 28, 2011

Hi there I'm wondering if someone can help me...

I have a load of names that I need to convert to outlines then save as an .ai legacy vers 08

I'm trying to work out a way to get a script that will

Convert my text to outlines

then save it using the the name from the text

as a Illustrator vers 8 file..

anyone have any ideas.. or a pointer on how to get started

any help greatly appreciated

kind regards

Alex

TOPICS
Scripting
1.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
New Here ,
Sep 28, 2011 Sep 28, 2011

Here's AppleScript code to resave illustrator docs with specific specs. Should be able to change the version in here.

on open (_filelist)

repeat with _file in _filelist

tell application "Adobe Illustrator"

open (_file as alias)

set _path to file path of document 1 as string

save document 1 in file _path with options

close document 1 saving no

end tell

end repeat

end open

Outlining should be pretty easy to add in.

Shelley Lea

Graphics Manager

John Wiley & Sons

10475 Crosspoint Blvd.

Indianapolis, IN 46256

317-572-3126

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Sep 28, 2011 Sep 28, 2011

Yup is all very standard stuff… It does always help if you point out your preferred scripting language if you have one else your platform… The only step that you require script for is the name string else an action would have done you…

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 28, 2011 Sep 28, 2011

Ok. Sorry. I'm very new to scripting. I guess I should gave mentioned that.

I was hoping to do it in jscript. I had an action to create the outlines. But you can't use an action to save as a vers 08 ai or eps... Can you ?

Thanks for the replys.

Alex

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Sep 29, 2011 Sep 29, 2011

Im NOT sure what you mean by that… You mean you can't back save an *.eps with action or script? You should be able to with both… The only part an action couldn't deal with is the condition naming based on text content string… That does require script… As for Illustrator 8 compatibility yes thats an available option to pass in the save options… Also did you mean JavaScript?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 27, 2011 Oct 27, 2011

i'm also looking for a script to save a bunch of cs5 files back to cs3 -- i have zero scripting knowledge (except for knowing where to save and how to access) so i need the whole script ready to go -- applescript.

if you can provide, thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 27, 2011 Oct 27, 2011
LATEST

Here you go

-- BEGIN CODE

set fileTypes to {"EPSF", "PDF ", "ART5", "TEXT"} -- file types available to resave as Illustrator

-- get a sourceFolder that holds the files to resave as AI

set sourceFolder to (choose folder with prompt "Choose a folder with files to resave as Illustrator:") as text

-- get a list of files of the defined type in the sourceFolder

tell application "Finder" to set workingFiles to (every file of folder sourceFolder whose file type is in fileTypes) as alias list

-- now you have your fileList argument

-- get a destinationFolder to hold the PDFs

set destinationFolder to choose folder with prompt "Choose a folder to hold the Illustrator files:"

SaveFilesAsIllustrator13(workingFiles, destinationFolder)

on SaveFilesAsIllustrator13(fileList, destinationFolder)

    set destinationPath to destinationFolder as string

    repeat with aFile in fileList

        tell application "Finder"

           

            set fileName to displayed name of aFile -- get displayed name

            set AppleScript's text item delimiters to "."

            set newFileName to text item 1 of fileName

            set newFilePath to destinationPath & newFileName & ".ai"

           

        end tell

        tell application "Adobe Illustrator"

            open aFile

            save current document in file newFilePath as Illustrator with options {class:Illustrator save options, compatibility:Illustrator13, embed linked files:true, PDF compatible:true, font subset threshold:0.0}

            close current document saving no

        end tell

    end repeat

end SaveFilesAsIllustrator13

-- END CODE

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines