Hi All …
I have a new one to writing AppleScript, i try to replace /change some filename in illustrator.
Here is my sample script…
tell application "Adobe Illustrator"
activate
-- Date Create:
set thisDoc to current document
set curDay to day of (current date)
set curMon to month of (current date) as number
set curMon2 to month of (current date)
set curYear to year of (current date)
set docDate to curDay & "-" & curMon & "-" & curYear
set toDay1 to "Date: " & docDate
--user information create
set the ppList to {"AAA", "BBB", "CCC", "DDD", "EEE"}
set the ppUser to (choose from list ppList with prompt ("Who Create File...") ¬
OK button name "Choose") as string
if the ppUser is "False" then error number -128
--File information create
display dialog "Enter the File Name:" default answer "JB"
set filename to the text returned of the result as string
-- Data Variable change...
set the contents of text frame "<<user#_1>>" of current document to ppUser
set the contents of text frame"<<Filename>>" of current document to filename
set the contents of text frame "<<date_1>>" of current document to toDay1
end tell
i want to change my file name (<>) in the job .
but when i run this script, the script show me error message ,
i try to amend but also can’t finish
can anyone help…
In file i have 2 page , artboard 1 & artboard 2,
artboard 1 set the variable file name is <>_F on the artboard (not text frame name)
artnoard 2 set the variable file name is <>_B on the artboard(not text frame name)
Model: MacBook Pro
AppleScript: AppleScript 2.7
Browser: Firefox 62.0
Operating System: macOS 10.14