Search found 78 matches

by cwswitch
Tue Nov 28, 2017 10:55 pm
Forum: LEGACY scripting
Topic: Script fails with Failed to make directory
Replies: 3
Views: 5696

Script fails with Failed to make directory

Hi, we're not sure where this error lies, but seems to be a write permission. We have tried running with our network administrators account and with our switch account (which is already an administrator) In all cases we receive the error 29/11/2017 8:45:24 AM,Error,SwitchScript1,test write,Script el...
by cwswitch
Tue Nov 14, 2017 2:15 am
Forum: Forum Guidelines / Forum Feature requests / Forum Bug reports?
Topic: Outdated links to Crossroads send me in circles
Replies: 4
Views: 13725

Re: Outdated links to Crossroads send me in circles

enfocus wrote:Can you tell me in which versions of Switch you are seeing links still pointing to Crossroads-world.com?
Switch 13 has a link to Crossroads in the Help menu

Thanks for the other info
by cwswitch
Wed Nov 08, 2017 1:05 am
Forum: Forum Guidelines / Forum Feature requests / Forum Bug reports?
Topic: Outdated links to Crossroads send me in circles
Replies: 4
Views: 13725

Outdated links to Crossroads send me in circles

I'm quite new to Switch but feel I'd be far further ahead with good online help. Instead this is what happens. Search online result which links to corssroads which links to these forums I reach this loop to nowhere many times a day. These outdated links are all over the web, in the documentation and...
by cwswitch
Wed Nov 08, 2017 12:19 am
Forum: LEGACY scripting
Topic: Streamlining scripts - point to common information
Replies: 7
Views: 10569

Re: Streamlining scripts - point to common information

I got a copy of Portals a little while after finding Private Data Write and have used it at a very entry level so know some of the benefits. I just learned about it a bit late to add it to my past flows that were already built with conventional methods. I read through the slideshow on your link and ...
by cwswitch
Tue Nov 07, 2017 9:55 pm
Forum: LEGACY scripting
Topic: Streamlining scripts - point to common information
Replies: 7
Views: 10569

Re: Streamlining scripts - point to common information

I love your Private data Write and use it very frequently. These flows do not talk to one another, the MIS sends to whichever it needs and the flow always returns to the MIS, but I do think you're encouraging me in the right direction - at least towards something I understand! I think then I'll need...
by cwswitch
Tue Nov 07, 2017 3:56 am
Forum: LEGACY scripting
Topic: How include external JavaScript into Switch-script (JavaScript)?
Replies: 1
Views: 3915

Re: How include external JavaScript into Switch-script (JavaScript)?

I'd love to if it still existed :-)

My new question is here
by cwswitch
Mon Nov 06, 2017 11:54 pm
Forum: LEGACY scripting
Topic: Streamlining scripts - point to common information
Replies: 7
Views: 10569

Re: Streamlining scripts - point to common information

I'm wondering if I can use standard JavaScript to import from another file. Problem I have is that I'm not really confident with the scripts I have here to edit them and try this just yet. Has anyone gone this way? //common.js var foo = a var bar = b //all other scripts require('common.js'); //use f...
by cwswitch
Fri Nov 03, 2017 4:23 am
Forum: LEGACY scripting
Topic: Streamlining scripts - point to common information
Replies: 7
Views: 10569

Re: Streamlining scripts - point to common information

Thanks for that. I had come across that same page in the PDF manual but am still yet to form a working example to build from.
by cwswitch
Thu Nov 02, 2017 11:01 pm
Forum: LEGACY scripting
Topic: Streamlining scripts - point to common information
Replies: 7
Views: 10569

Streamlining scripts - point to common information

I'm about to dip into scripting - right into the deep end. I've inherited 30 or so scripts attached to 6 or so flows and there is a lot of repeated information, such that if one thing changed, I'd have to edit all of these occurrences. Can I instead alter these scripts to point to a variable located...
by cwswitch
Wed Oct 04, 2017 2:32 am
Forum: LEGACY scripting
Topic: Path Length - vector or compound path
Replies: 4
Views: 5871

Re: Path Length - vector or compound path

I got a great solution by following this path, thanks! Bit of work off the back of this idea and I now get the job to output with the number of nodes in its file name. If you have PitStop Server, then you can use an Action List to check if the amount of nodes in a page is more then a certain thresho...
by cwswitch
Tue Oct 03, 2017 3:49 am
Forum: LEGACY scripting
Topic: Path Length - vector or compound path
Replies: 4
Views: 5871

Re: Path Length - vector or compound path

Brilliant suggestion with Pitstop!

If I can get that working it's a very good step.

Let's see...
by cwswitch
Mon Sep 25, 2017 1:57 am
Forum: LEGACY scripting
Topic: Path Length - vector or compound path
Replies: 4
Views: 5871

Path Length - vector or compound path

Illustrator may not be the solution, but I have found that you can get the length of a path Window Menu > Document Info > (window opens) > (Pallet menu of window that just opened) > Objects and I have found a method via a script https://gist.github.com/nanoSpawn/8e8fca48d0fb85dd961e/ Problem I'm try...
by cwswitch
Fri Sep 01, 2017 4:33 am
Forum: LEGACY scripting
Topic: Clean up filenames from XML
Replies: 4
Views: 9409

Clean up filenames from XML

An XML is sent to Switch, and that is the first point that I have any control over what is sent. There's no ability (or interest) upstream to help me here. As the information is in the XML, and XML can't have certain characters in it, then I have trouble injecting jobs. Example filename in the XML f...
by cwswitch
Wed Aug 16, 2017 5:49 am
Forum: Flows
Topic: How do you handle Illegal Characters?
Replies: 6
Views: 7886

Re: How do you handle Illegal Characters?

Thanks, Very good point that Switch can't work on files it can't find.. I feel silly for even considering that! The files are on a Windows Server which I access over the network. I suppose I was wondering whether I could manipulate the XML or pull the path into Private Data (as Gabriel seemed to be ...
by cwswitch
Fri Aug 11, 2017 4:41 am
Forum: Flows
Topic: How do you handle Illegal Characters?
Replies: 6
Views: 7886

Re: How do you handle Illegal Characters?

Thanks Your forum posts and scripts are very clear and useful. I could not get by without your private data script! I use that all the time for sorting jobs. I'm a bit unclear how I use this for injecting a job with an "&" in the filename Example error I'm trying to work around Error,I...