RE: Scripting Bar Code Pro
RE: Scripting Bar Code Pro
- Subject: RE: Scripting Bar Code Pro
- From: "Bourque, Jason" <email@hidden>
- Date: Wed, 21 Mar 2001 08:14:03 -0500
I tried the same thing. It has a bogus dictionary. The attempt would
sometimes freeze the computer. And the company doesn't plan to support
AppleScript.
So I had to used prefab player and template files to make it work. But it
was a lot slower. I think I will script a solution in Adobe Illustrator
9.0.2
Good luck!
Jason Bourque
AppleScript Developer
MFS Investment Management
617-954-5312
>
----------
>
From: Chris Nitz
>
Sent: Tuesday, March 20, 2001 1:20 PM
>
To: email@hidden
>
Subject: Scripting Bar Code Pro
>
>
HELP! This doesn't work!
>
The Application "Bar Code Pro. with Veribar." quits after/during the
>
"save" step.
>
Then the AppleScript gets stuck.
>
>
AFAIK: BarCodePro is supposed to (?) know the filename, based on the data
>
entered.
>
>
Sometimes (half the time?), the first Document (00000000000.eps) saves
>
OK...
>
...but then (always) the application just disappears -- no error = KnoW
>
nothin'.
>
>
>
The Variables (a,b,c,d,e,f,g,h,i,j,k) are just numbers from 0-9, inside a
>
loop.
>
This script is supposed to generate every numerical combination for some
>
11 digit barcodes, built off of a "template" file that has most of the
>
settings already correct.
>
>
-- START SCRIPT --
>
set TheTemplate to choose file with prompt "Select the BarCode Template."
>
>
tell application "Bar Code Pro. with Veribar."
>
open TheTemplate
>
tell document 1
>
set TheNumber to (a & b & c & d & e & f & g & h & i & j & k)
>
as text
>
set main input to (TheNumber as text)
>
set add_on input to ""
>
Do Menu (save) -- ERROR HERE -- WHY????
>
Do Menu (close)
>
end tell
>
end tell
>
-- END SCRIPT --
>
>
>
>
(Mac OS 9.1 -- AppleScript 1.5.5 -- Bar Code Pro. 3.55 Veribar -- G4 w/512
>
meg ram)
>
>
>
Please respond to email@hidden.
>
Thanks.
>
>
Chris Nitz
>
Senior Prepress Systems Analyst
>
Wizards of the Coast Production Dept.
>
>
E-mail: email@hidden Desk: 425 204-8044 Cellular: 206
>
604-0357