Search found 577 matches

by gabrielp
Thu Jun 15, 2017 10:56 pm
Forum: Scripting
Topic: http request - post
Replies: 18
Views: 92906

Re: http request - post

Try to enable debug logging. The debug logger should show some stuff.

You might want to reference this page: http://www.enfocus.com/manuals/Develope ... class.html
by gabrielp
Thu Jun 15, 2017 10:40 pm
Forum: Scripting
Topic: http request - post
Replies: 18
Views: 92906

Re: http request - post

That's invalid according to Enfocus' docs. It says this about statusCode: This property is read-only and becomes available after the HTTP request is finished. Perhaps 0 is what it returns before the request is finished? Are you waiting for it to be finished like this? while( !theHTTP.waitForFinished...
by gabrielp
Thu Jun 15, 2017 10:31 pm
Forum: Scripting
Topic: http request - post
Replies: 18
Views: 92906

Re: http request - post

An HTTP request should have an HTTP status code and message on response. Try and print it out to see what it is: if( theHTTP.finishedStatus == HTTP.Ok && theHTTP.statusCode == 200 && File.exists( theHTTP.localFilePath ) ) { job.log( 1, "Request completed successfully" ); } ...
by gabrielp
Thu Jun 15, 2017 10:15 pm
Forum: Scripting
Topic: http request - post
Replies: 18
Views: 92906

Re: http request - post

It doesn't give you a response code or body from the server? You don't need to provide any authentication for your API Gateway?
by gabrielp
Thu Jun 15, 2017 3:24 pm
Forum: Scripting
Topic: Create a log file (.csv) for FTP uploads
Replies: 2
Views: 26671

Re: Create a log file (.csv) for FTP uploads

Might not be exactly what you're looking for, but in preferences there is an option to enabling debug logging for FTP.
by gabrielp
Thu May 25, 2017 5:50 pm
Forum: Scripting
Topic: Fails on Mac but works on Windows (thats hard for me to say)
Replies: 12
Views: 89902

Re: Fails on Mac but works on Windows (thats hard for me to say)

So your s.copy is returning undefined, when it should be returning a boolean: http://www.enfocus.com/manuals/Develope ... class.html

I don't know why it would do that....
by gabrielp
Thu May 25, 2017 4:44 pm
Forum: Scripting
Topic: Fails on Mac but works on Windows (thats hard for me to say)
Replies: 12
Views: 89902

Re: Fails on Mac but works on Windows (thats hard for me to say)

What version of Switch are you running this on?
by gabrielp
Thu May 25, 2017 4:28 pm
Forum: Scripting
Topic: Fails on Mac but works on Windows (thats hard for me to say)
Replies: 12
Views: 89902

Re: Fails on Mac but works on Windows (thats hard for me to say)

Thanks for your reply. I've added that option and no such luck. When I do a s.log() and get the "type of" success, it returns as undefined. So then it can't enter the if/else statement. Are you talking about the return from that function? If so, you need to pass it the Switch object. var ...
by gabrielp
Thu May 25, 2017 3:32 pm
Forum: Scripting
Topic: Fails on Mac but works on Windows (thats hard for me to say)
Replies: 12
Views: 89902

Re: Fails on Mac but works on Windows (thats hard for me to say)

Perhaps it's because the directory separators are different between windows and mac? Try this function: // Determine directory seperator var getDirectorySeperator = function( s : Switch ){ var directorySeperator; if(s.isMac()){ directorySeperator = '/'; } else { directorySeperator = '\\' } return di...
by gabrielp
Thu May 18, 2017 10:43 pm
Forum: Scripting
Topic: switch-inject-lite
Replies: 10
Views: 80310

Re: switch-inject-lite

Please turn on debugging log messages and post or send me your log. I'm not sure what's happening here...
by gabrielp
Thu May 18, 2017 3:25 pm
Forum: Scripting
Topic: switch-inject-lite
Replies: 10
Views: 80310

Re: switch-inject-lite

First off this is an awesome concept I love it. I'm having issues with the "read-only" inject, it's not injecting it. If I do the Assert Check, it can see the file. Is there an issue with the "read-only? Thanks! Any log messages when you try the read-only inject? Try to enable debug ...
by gabrielp
Wed May 03, 2017 4:27 pm
Forum: Flows
Topic: Capture page count in multiple PDF files
Replies: 2
Views: 16078

Re: Capture page count in multiple PDF files

You can also do some database stuff with this script: https://github.com/open-automation/switch-sql-query
by gabrielp
Wed Apr 26, 2017 4:03 pm
Forum: Applications
Topic: Adobe configurators unavailable
Replies: 4
Views: 55683

Re: Adobe configurators unavailable

Do you have the extendscript toolkit (or whatever it's called) installed? If I recall, some configurators needed that. But that shouldn't cause them to show up grey though.... Anything in the logs when you start Switch?
by gabrielp
Fri Apr 21, 2017 6:05 pm
Forum: Flows
Topic: use dynamic index with XML Metadata
Replies: 2
Views: 14511

Re: use dynamic index with XML Metadata

Yeah you need to script to put variables in variables I think https://forum.enfocus.com/viewtopic.php ... 645&p=5855