Search found 219 matches

by Padawan
Fri Jan 31, 2020 10:48 pm
Forum: Switch
Topic: Inject User Account in à job
Replies: 5
Views: 242

Re: Inject User Account in à job

You'll need a script (and the scripting module) which sets the username for the job. The script can use setUserName() in the job class. From the documentation: setUserName( username: String ) Sets the short user name associated with the job. If the specified string does not match the name of an exis...
by Padawan
Sun Jan 26, 2020 10:33 am
Forum: Flows
Topic: Flow continuously generate errors
Replies: 6
Views: 367

Re: Flow continuously generate errors

Are you using the portal apps?
then I think you might be running into these issues :

viewtopic.php?f=25&t=3341&p=10466&hilit=Ether#p10466
by Padawan
Fri Jan 24, 2020 12:56 pm
Forum: Scripting
Topic: Writing a Text File via (Java) Scripting
Replies: 5
Views: 614

Re: Writing a Text File via (Java) Scripting

When you work in scripted, then you can add a test job with test metadata etc in the fixture pane. This way you can test the script in scripter with the test data.

All the test data is stored in the sficture file. You don't need it to run the script in Switch.
by Padawan
Sat Dec 21, 2019 9:20 am
Forum: PitStop Server
Topic: Automatically flatten or flag transparencies?
Replies: 2
Views: 270

Re: Automatically flatten or flag transparencies?

What issues do you have?

If you want to convert spot to cmyk, then it is necessary to do so in a separate hotfolder, before the flattening hotfolder.

(you can make the output folder of the first hotfolder the input of the second)
by Padawan
Sat Dec 21, 2019 9:15 am
Forum: Flows
Topic: Drag file from desktop into folder icon issue
Replies: 3
Views: 462

Re: Drag file from desktop into folder icon issue

Are you running switch as a Windows service? If so, then it runs under the System user by default. Your automanaged folders will then be in a location only accessible for the system user. When running as a Windows service, it is best to configure the service to run as a normal user to avoid these th...
by Padawan
Mon Nov 04, 2019 3:35 pm
Forum: Flows
Topic: SQL Query works in the statement editor, but not when finished
Replies: 5
Views: 692

Re: SQL Query works in the statement editor, but not when finished

Can you try this?

kundnamn=[Database.Text:SQL="[Job.PrivateData:Key='queryKundnamn']",Connection="printvis"]

I've changed the double quotes around the private data key to single quotes.
by Padawan
Wed Oct 30, 2019 4:53 pm
Forum: Scripting
Topic: Using folder for keep data of script
Replies: 2
Views: 632

Re: Using folder for keep data of script

What kind of information would you like to store? Do you actually want to store files? Or just pieces of information? I usually save pieces of information in two ways: If it is job related data which needs to be available for different scripts, then I think it is best to store the info in the job pr...
by Padawan
Mon Oct 14, 2019 10:37 am
Forum: Switch
Topic: EXIF Tools and spaces
Replies: 8
Views: 1128

Re: EXIF Tools and spaces

Jan beat me to it. His solution also works with the Creator argument:
"-Creator=[Metadata.Text:Path="/field-list/field[tag='Fotograf']/value",Dataset="Submit",Model="XML"]" "%1"
by Padawan
Sun Oct 13, 2019 8:01 am
Forum: Switch
Topic: EXIF Tools and spaces
Replies: 8
Views: 1128

Re: EXIF Tools and spaces

Can you try with putting single quotes around your switch variable?

By using quotes you tell the command the two parts of the name belong together. In this place I would use single quotes to not interfere with the double quotes used in the switch variable.
by Padawan
Wed Sep 25, 2019 1:18 pm
Forum: Action Lists
Topic: Spot Colors to Layers
Replies: 6
Views: 1342

Re: Spot Colors to Layers

I haven't tested it myself, but I think this does what you need?
https://www.enfocus.com/en/appstore/pro ... pdf-layers

Edit: that is, it is what you need when you have both PitStop Server and Enfocus Switch.
by Padawan
Sun Sep 08, 2019 10:53 am
Forum: Scripting
Topic: Concurrent execution...?
Replies: 1
Views: 493

Re: Concurrent execution...?

When you check the progress pane, does the script show as a normal script or a light script? When switch sees a script finishes fast it considers it a light script and starts more of them concurrently. If switch currently doesn't see it as a light script, then you might get a performance improvement...
by Padawan
Wed Aug 14, 2019 1:16 pm
Forum: Flows
Topic: XML string to PDF File
Replies: 10
Views: 2054

Re: XML string to PDF File

Ok, I used the earlier mentioned code and created a flow with it, you can find it in the attached zip. The flow looks like this: https://i.ibb.co/yfm3Jfv/screenshot.png Basically: - An XML Pickup to attach your xml file as metadata - A script to extract the part of the xml which is the PDF and save...
by Padawan
Tue Aug 13, 2019 5:55 pm
Forum: Flows
Topic: XML string to PDF File
Replies: 10
Views: 2054

Re: XML string to PDF File

Most likely the XPath expression is incorrect. Would it be possible to share your XML file? Then we can tailor an example specific to the structure of your XML file.
by Padawan
Sun Aug 11, 2019 3:53 pm
Forum: Switch
Topic: How are missing font/image pop ups defeated in Illustrator?
Replies: 1
Views: 881

Re: How are missing font/image pop ups defeated in Illustrator?

Do you see the popups with the official Illustrator configurator with no extra scripts? If yes, then double check that you are using a supported version of Illustrator. You can find the supported versions via menu Help/Manage configurators in Switch and searching for Illustrator. If you are using a ...