Search found 66 matches

by cwswitch
Thu Feb 14, 2019 10:16 pm
Forum: Scripting
Topic: Looping through private data and adding to file name suffix
Replies: 2
Views: 39

Re: Looping through private data and adding to file name suffix

Holy shit

Thanks!!!

As my script was getting longer and worse, you came in with a nice tidy solution :lol:

I have so much to learn!
by cwswitch
Thu Feb 14, 2019 3:28 am
Forum: Scripting
Topic: Looping through private data and adding to file name suffix
Replies: 2
Views: 39

Looping through private data and adding to file name suffix

Hi, I have files arriving at a rename which contain private data that I want to add to the filename. The private data will be Key 01, Value 01 to Key nn, Value nn (key name and the value they hold are the same so Key 88 would be value 88 ). A job may have Keys 01 and 03, another job may have keys 04...
by cwswitch
Sun Jan 13, 2019 11:35 pm
Forum: Scripting
Topic: Pushing errors to Error out
Replies: 1
Views: 145

Pushing errors to Error out

Hello, Can I push any error in a script to the error out connector? Or must I have a try catch and the catch pushes the error the way I want? If try/catch was the way, then do I copy the problem bit of code like this? try { problem code in its entirety even if it is several lines long; } catch (e) {...
by cwswitch
Tue Jan 08, 2019 11:02 pm
Forum: Scripting
Topic: Convert a script to use Traffic Light output
Replies: 6
Views: 335

Re: Convert a script to use Traffic Light output

Awesome thanks, you're very helpful
by cwswitch
Tue Jan 08, 2019 1:51 am
Forum: Scripting
Topic: Convert a script to use Traffic Light output
Replies: 6
Views: 335

Re: Convert a script to use Traffic Light output

Thanks Gabriel your script appears so clean and readable, even though it is still way beyond me I can at least see how you handle your errors. I have edited the script I had as below and it seems to work in a test. I'm very scared to put it into production though as I'm so inept at scripting. OLD - ...
by cwswitch
Mon Jan 07, 2019 12:19 am
Forum: Scripting
Topic: Convert a script to use Traffic Light output
Replies: 6
Views: 335

Re: Convert a script to use Traffic Light output

Ah brilliant, thanks.

So where the script is currently producing its error,

Code: Select all

throw new Error...;
Can I just add below

Code: Select all

sendToData(3);
by cwswitch
Sun Jan 06, 2019 11:27 pm
Forum: Scripting
Topic: Convert a script to use Traffic Light output
Replies: 6
Views: 335

Convert a script to use Traffic Light output

This is the area of Switch I have most to learn about. I have a script made by a previous person and it can error. I think that having a traffic light output connector will help me move the problem jobs away from the good ones. The script does throw an error (something like an undefined variable or ...
by cwswitch
Thu Jan 03, 2019 10:39 pm
Forum: Preflighting
Topic: How do I preflight for an item with zero fill and is knockout (but the designer thinks has a fill)
Replies: 3
Views: 251

Re: How do I preflight for an item with zero fill and is knockout (but the designer thinks has a fill)

I have now fixed this. The cause was that prepress run a Quite Hot imposing action followed by a Pitstop action. There is nothing wrong with these tools normally, but these two actions when run one after the other break transparencies. I have replaced the Quite Hot action with a Pitstop one that ach...
by cwswitch
Thu Jan 03, 2019 10:31 pm
Forum: Imposition
Topic: Quite hot imposing
Replies: 1
Views: 246

Re: Quite hot imposing

If you write to them, they will make anything you need.

Are you using Quite Hot in Switch?
by cwswitch
Wed Jan 02, 2019 11:24 pm
Forum: Preflighting
Topic: How do I preflight for an item with zero fill and is knockout (but the designer thinks has a fill)
Replies: 3
Views: 251

Re: How do I preflight for an item with zero fill and is knockout (but the designer thinks has a fill)

Thanks for that. I have investigated further and found 2 steps in prepress that are causing the error. I'm not sure now how the steps are causing this though At the same link https://drive.google.com/drive/folders/1nSlKOBW9JBJjv3c_2NYAFdfIp2wT7Zeg?usp=sharing I now have "A LF" and "B LF" these files...
by cwswitch
Wed Jan 02, 2019 3:31 am
Forum: Preflighting
Topic: How do I preflight for an item with zero fill and is knockout (but the designer thinks has a fill)
Replies: 3
Views: 251

How do I preflight for an item with zero fill and is knockout (but the designer thinks has a fill)

Examples here https://drive.google.com/drive/folders/1nSlKOBW9JBJjv3c_2NYAFdfIp2wT7Zeg?usp=sharing Though they appear to have the same settings, File 'A' ripped OK and File 'B' did not. The results when ripped and printed was solid white circles as the RIP is (correctly I believe) knocking out benea...
by cwswitch
Tue Sep 18, 2018 11:11 pm
Forum: Applications
Topic: Upgrading from Switch 13 r1 to 2018 - I'm worried - any tips?
Replies: 4
Views: 755

Re: Upgrading from Switch 13 r1 to 2018 - I'm worried - any tips?

Thanks :geek:

Working out which is harder, fixing Pistop or writing my CV...
by cwswitch
Mon Sep 17, 2018 11:06 pm
Forum: Applications
Topic: Upgrading from Switch 13 r1 to 2018 - I'm worried - any tips?
Replies: 4
Views: 755

Re: Upgrading from Switch 13 r1 to 2018 - I'm worried - any tips?

Thanks for that. Very useful. I'd hate to be in that kind of mess during production time.

Should I aim to reference all actions and preflights from the "Select Many from Library" before upgrading Pitstop?
by cwswitch
Mon Sep 17, 2018 3:48 am
Forum: Applications
Topic: Upgrading from Switch 13 r1 to 2018 - I'm worried - any tips?
Replies: 4
Views: 755

Upgrading from Switch 13 r1 to 2018 - I'm worried - any tips?

This will be my first upgrade. Clearly we are a little out of date, being on 13 r1, I am now looking to upgrade to 2018. I'm looking for any tips - or answers to the below if you have them - thanks. Should I upgrade to 13 r2, or jump straight to 2018? How long will an upgrade take (roughly)? I'm thi...
by cwswitch
Tue Sep 11, 2018 10:59 pm
Forum: Scripting
Topic: Info from unknown XML
Replies: 3
Views: 596

Re: Info from unknown XML

dkelly, cstevens,

many thanks both for the help! I'll try out these ideas