Search found 364 matches

by Padawan
Sat Dec 21, 2019 9:15 am
Forum: Flows
Topic: Drag file from desktop into folder icon issue
Replies: 3
Views: 5372

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: 8656

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: LEGACY scripting
Topic: Using folder for keep data of script
Replies: 2
Views: 5806

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: 12714

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: 12714

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: 11096

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: LEGACY scripting
Topic: Concurrent execution...?
Replies: 1
Views: 4959

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: 11
Views: 37355

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: 11
Views: 37355

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: 4376

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 ...
by Padawan
Tue Aug 06, 2019 11:55 am
Forum: Switch
Topic: Delete specific files from SFTP
Replies: 3
Views: 7398

Re: Delete specific files from SFTP

Using default Switch tools the only way to rename a folder on an FTP server is to: - Download the folder from the FTP - Rename it - Upload it again to the FTP If you want to rename the folder on the FTP itself, then you need an external script or command line tool which is able to rename the FTP fol...
by Padawan
Sun Aug 04, 2019 6:56 pm
Forum: Switch
Topic: "Sort files in job" Element
Replies: 1
Views: 4413

Re: "Sort files in job" Element

Can you try to set it like this? Sort key 1: Number Number index 2 Sort key Number means that it will search for numbers in the filename. Number index 2 means it will look for the second number in the filename and use that for the sorting. This means that: For filename "A1B2C3.pdf", "...
by Padawan
Wed Jul 31, 2019 9:09 am
Forum: Switch
Topic: Delete specific files from SFTP
Replies: 3
Views: 7398

Re: Delete specific files from SFTP

You'll need to call an external script or command line tool to accomplish this.

There has been a similar discussion in the past:
viewtopic.php?f=11&t=92

(I haven't tried this myself, I just remembered the old topics)
by Padawan
Mon Jul 29, 2019 8:50 am
Forum: LEGACY scripting
Topic: Convert Date Format - Missing Leading Zero's
Replies: 2
Views: 6265

Re: Convert Date Format - Missing Leading Zero's

Hi,

Can you try to replace
var date = new String (+year + "-" + +month + "-" + +day);
with
var date = new String (year + "-" + month + "-" + day);
?

The extra plus signs make that Switch interprets the string as number and removes the leading zero's.
by Padawan
Thu Jul 25, 2019 4:30 pm
Forum: LEGACY scripting
Topic: setGlobalData issue
Replies: 6
Views: 10394

Re: setGlobalData issue

I really hope that some day I will be able to stop make stupid mistakes like this. Usually I find them before I finish the project, but this one slipped thru :)

Thanks Freddy!

If this is not the issue, then I'm getting curious to the issue Loic is having.