Author Topic: Using text editor to change color bar on many templates  (Read 569 times)

0 Members and 1 Guest are viewing this topic.

Offline DCurry

  • Ninja Member
  • *
  • Posts: 1794
  • Gender: Male
  • The jerk store called, and they're out of you.
Using text editor to change color bar on many templates
« on: February 07, 2019, 12:43:33 PM »
Has anyone ever used a text editor to open up Preps templates and modify the marks?

Currently using Preps 8 and discovered recently that we've been using the wrong color bar for the past year and a half, so now we need to change it on all our templates. Because of the overall suckitude of any version after 5, modifying templates with lots of sigs within is now a major PITA so I'm looking to streamline it somewhat.

I tried it out on a job recently and it seems to have worked well, but just wondering if there is a caveat somewhere I'm not seeing? (Joe, I know you've done this before!)
Prinergy 8.1.1.286 • Preps 8 (Not a fan) • SmartStream Designer

Build a man a fire, and he'll be warm for a night. But set a man on fire, and he'll be warm for the rest of his life!

Offline Joe

  • Master of Nothing
  • Administrator
  • Ninja Warlord
  • *****
  • Posts: 36335
  • Gender: Male
    • B4Print.com
Re: Using text editor to change color bar on many templates
« Reply #1 on: February 07, 2019, 02:14:48 PM »
Yeah I use either the deprecated TextWrangler or the free version of BBEdit. You can do a search and replace on all files in a folder. The secret is to place about 5 copies of a few templates and test it to make sure before you do it on your whole inventory of templates. Unless of course you like living on the edge. No secret caveat that I know of. Just make sure what you are searching for is correct and replace with something is correct.
Mac OS 10.14.3 Mojave | Prinergy 8.2 | Adobe Creative Cloud 2019 | Two Luscher XPose 160 CTP units

Prepress: One who does precision guess work based on unreliable data provided by those of questionable knowledge.

Offline scottrsimons

  • Prepress/IT/Automation
  • Full Member
  • ***
  • Posts: 249
  • Gender: Male
Re: Using text editor to change color bar on many templates
« Reply #2 on: February 07, 2019, 02:49:17 PM »
I vaguely remember doing the same sorta thing using BBEdit to a whole folder of templates. Search and Replace within the folder, per Kodak instructions. But I wish I could remember exactly how. If I'm pressed, I could probably find it.
Mac • Prinergy 8 • Preps 8 • RBA • Fusion Pro

"Your superior intellect is no match for our puny weapons!" - Homer J. Simpson

"Those who make you mad, control you."

Offline Mikie

  • Sr. Member
  • ****
  • Posts: 302
  • Gender: Male
Re: Using text editor to change color bar on many templates
« Reply #3 on: February 07, 2019, 03:07:09 PM »
Could you guys elaborate on this a little more? Like how it works etc. I too recently found out we have the wrong color bars and would love an easy way to fix the templates. 

Offline Joe

  • Master of Nothing
  • Administrator
  • Ninja Warlord
  • *****
  • Posts: 36335
  • Gender: Male
    • B4Print.com
Re: Using text editor to change color bar on many templates
« Reply #4 on: February 07, 2019, 05:10:27 PM »
Using BBEdit under the search menu click "Multi-file Search..."

[attach width=400]19401[/attach]

Fill in your search and replace text in the boxes with the red arrow.

Then click the "Other" button and navigate to and select the folder where your template files are at.

[attach width=400]19403[/attach]

Then click "Replace All".

Just make sure you are using a copy of your templates so if something goes wrong you still have the originals.
Mac OS 10.14.3 Mojave | Prinergy 8.2 | Adobe Creative Cloud 2019 | Two Luscher XPose 160 CTP units

Prepress: One who does precision guess work based on unreliable data provided by those of questionable knowledge.

Offline DCurry

  • Ninja Member
  • *
  • Posts: 1794
  • Gender: Male
  • The jerk store called, and they're out of you.
Re: Using text editor to change color bar on many templates
« Reply #5 on: February 08, 2019, 09:54:22 AM »
Mikie - once you force your template open in a text editor, you'll see a bunch of lines of code that basically just describe everything in the template. You have to do as Joe says and find what you want to replace. In my case, the code for my old color bar looks like this:

Quote
%SSiSmartMarkStart: 3 9 -1
name: |XL75_ColorBar_6Si_2019|
text: |F074_6S___740x10v12.0f.eps|
dupflags: 291
sigstart: 1
sigmod: 1
colortype: 0
color1: 100
color2: 100
color3: 100
color4: 100
rotation: 0
smartoffsetx: 36.00000
smartoffsety: -13.50000
refentity: 2
refanchor: 1
markanchor: 1
section: 0
width: 0.00000
height: 28.34700
origingroup: ||
calibratedupmark: true
smartoffsetb: -36.00000 14.84700
refentityb: 2
refanchorb: 3
%SSiSmartMarkEnd:


So, I replace all those lines with code describing my new color bar. To get that code, you can either open your desired SmartMark in the text editor and just copy all of it, or what I did was place the correct bar on a template, then open that new template and find the good code and copy it.

It's important to include first and last lines to denote the start and end of that smart mark. Otherwise it won't work. Also note that if your template has multiple signatures within, you'll likely have to find/replace the mark multiple times (once for each form.)

My plan is to do several at a time, and then open each one and verify that I didn't screw anything up before moving on to the next batch.

Joe - thanks for confirming that this is not a crazy idea!
Prinergy 8.1.1.286 • Preps 8 (Not a fan) • SmartStream Designer

Build a man a fire, and he'll be warm for a night. But set a man on fire, and he'll be warm for the rest of his life!

Offline Joe

  • Master of Nothing
  • Administrator
  • Ninja Warlord
  • *****
  • Posts: 36335
  • Gender: Male
    • B4Print.com
Re: Using text editor to change color bar on many templates
« Reply #6 on: February 08, 2019, 10:05:30 AM »
Beats the hell out opening hundreds or even thousands of templates one at a time! Pretty sure ours are in the thousands by now.
Mac OS 10.14.3 Mojave | Prinergy 8.2 | Adobe Creative Cloud 2019 | Two Luscher XPose 160 CTP units

Prepress: One who does precision guess work based on unreliable data provided by those of questionable knowledge.

Offline Mikie

  • Sr. Member
  • ****
  • Posts: 302
  • Gender: Male
Re: Using text editor to change color bar on many templates
« Reply #7 on: February 08, 2019, 11:11:03 AM »
Got it. My issue here is we write out pjtf and .ps files for prinergy and thats what we import into each job with place holders. This is good info to know tho, so thanks guys :)

Offline Mikie

  • Sr. Member
  • ****
  • Posts: 302
  • Gender: Male
Re: Using text editor to change color bar on many templates
« Reply #8 on: February 08, 2019, 11:14:36 AM »
Oh and...check out number of items




Offline Joe

  • Master of Nothing
  • Administrator
  • Ninja Warlord
  • *****
  • Posts: 36335
  • Gender: Male
    • B4Print.com
Re: Using text editor to change color bar on many templates
« Reply #9 on: February 08, 2019, 11:16:59 AM »
I don't think we have that many. I'll have to check.
Mac OS 10.14.3 Mojave | Prinergy 8.2 | Adobe Creative Cloud 2019 | Two Luscher XPose 160 CTP units

Prepress: One who does precision guess work based on unreliable data provided by those of questionable knowledge.

Offline Joe

  • Master of Nothing
  • Administrator
  • Ninja Warlord
  • *****
  • Posts: 36335
  • Gender: Male
    • B4Print.com
Re: Using text editor to change color bar on many templates
« Reply #10 on: February 08, 2019, 11:18:59 AM »
Quote from: Mikie link=msg=305109 date=1549642263

Got it. My issue here is we write out pjtf and .ps files for prinergy and thats what we import into each job with place holders. This is good info to know tho, so thanks guys :)


I think .ps and .pjtf files are just text files aren't they. So you could do it with those too I think.
Mac OS 10.14.3 Mojave | Prinergy 8.2 | Adobe Creative Cloud 2019 | Two Luscher XPose 160 CTP units

Prepress: One who does precision guess work based on unreliable data provided by those of questionable knowledge.

Offline DCurry

  • Ninja Member
  • *
  • Posts: 1794
  • Gender: Male
  • The jerk store called, and they're out of you.
Re: Using text editor to change color bar on many templates
« Reply #11 on: February 08, 2019, 12:21:10 PM »
Mikie - I'm not trying to re-invent your workflow or anything, but I'm curious why you wouldn't just use Prinergy's "Create New Imposition" which opens up a dialog box based on Preps where you can pick your template? Saves you from having to touch Preps at all unless you need to modify a template or make a new one.
Prinergy 8.1.1.286 • Preps 8 (Not a fan) • SmartStream Designer

Build a man a fire, and he'll be warm for a night. But set a man on fire, and he'll be warm for the rest of his life!

Offline Mikie

  • Sr. Member
  • ****
  • Posts: 302
  • Gender: Male
Re: Using text editor to change color bar on many templates
« Reply #12 on: February 08, 2019, 12:48:53 PM »
Good question, and my answer is based on how things worked when i got here. I am currently looking for a way to impose jobs right before plating but haven't had any luck out of preps. We are plating over 100 jobs a day easily so it's a bit of a mess. Any chance you could walk me through how your method works? It sounds interesting to me.

90% of our jobs are automated. Data is entered into a web app, and an xml file is exported. I run indesign scripts to build the art, pass the Indd and pdf and xml off to prinergy which creates a new job based on a prejob(which contains the imposition files). We do flat work here so they are basic impositions, but we have a lot of varying sizes and possible presses we can send to.

Offline Mikie

  • Sr. Member
  • ****
  • Posts: 302
  • Gender: Male
Re: Using text editor to change color bar on many templates
« Reply #13 on: February 08, 2019, 12:57:44 PM »
Quote from: Joe link=msg=305111 date=1549642619

I don't think we have that many. I'll have to check.


hmmm, indeed they are and I just found the color bar info in the .ps file.

man i love you guys lol

Offline Joe

  • Master of Nothing
  • Administrator
  • Ninja Warlord
  • *****
  • Posts: 36335
  • Gender: Male
    • B4Print.com
Re: Using text editor to change color bar on many templates
« Reply #14 on: February 08, 2019, 01:27:17 PM »
Quote from: Mikie link=msg=305110 date=1549642476

Oh and...check out number of items


I guess we are wimps here. Only 5,634. And some of those are just folders :D
Mac OS 10.14.3 Mojave | Prinergy 8.2 | Adobe Creative Cloud 2019 | Two Luscher XPose 160 CTP units

Prepress: One who does precision guess work based on unreliable data provided by those of questionable knowledge.