Search found 361 matches
- Sat Aug 17, 2024 2:29 pm
- Forum: Node.js scripting
- Topic: Usign xpath trough script
- Replies: 1
- Views: 709
Re: Usign xpath trough script
You cannot use modules in script expressions which are not included in Nodejs itself. The correct way to read xml files is to use the native Switch modules, you can find more information in the documentation: https://www.enfocus.com/manuals/DeveloperGuide/SW/22.1/home.html#en-us/common/swscr/referen...
- Mon Aug 12, 2024 8:26 am
- Forum: LEGACY scripting
- Topic: pdfgrep - Execute command result as Private data
- Replies: 2
- Views: 2463
Re: pdfgrep - Execute command result as Private data
Execute command can save the stdout to a dataset, but not to private data. It also does not use a shell, so piping and redirecting doesn't work without an intermediate shell file. If you use the free app Run command, then you can save to private data and you can use redirecting and piping. That will...
- Wed Jul 03, 2024 3:05 pm
- Forum: Appstore
- Topic: Failed to connect to the Enfocus Appstore
- Replies: 6
- Views: 2885
Re: Failed to connect to the Enfocus Appstore
Enfocus reported to me it is fixed now
- Tue Dec 12, 2023 1:28 pm
- Forum: Switch
- Topic: Job Submission via API - help please!!
- Replies: 2
- Views: 25799
Re: Job Submission via API - help please!!
I haven't done job submission to Switch myself, but looking at your code I see that you set the Content-Type and Content-Length headers. When working in nodejs I personally use a library to calculate these when I work in nodejs. From what I can find online you don't have to specify them when you wor...
- Fri Nov 17, 2023 7:41 am
- Forum: Flows
- Topic: HTTP request (square brackets in JSON conflicts with Switch variables)
- Replies: 6
- Views: 23098
Re: HTTP request (square brackets in JSON conflicts with Switch variables)
You can escape square brackets in switch variables by duplicating the opening brackets. Can you try this? '{ "model": "gpt-4-1106-preview", "messages": [[ { "role": "user", "content": "Write a poem about flowers" } ], "temper...
- Fri Oct 13, 2023 10:17 am
- Forum: LEGACY scripting
- Topic: Delay Indesign Saving a Document
- Replies: 5
- Views: 39156
Re: Delay Indesign Saving a Document
I have used the following line in the past for font activation with extensis
$.sleep(10000)
(Unit is milliseconds)
You might want to try freddys suggestion first, if it works it won't need delays.
$.sleep(10000)
(Unit is milliseconds)
You might want to try freddys suggestion first, if it works it won't need delays.
- Sun Sep 24, 2023 11:35 am
- Forum: PitStop Server
- Topic: Image compression
- Replies: 2
- Views: 6978
Re: Image compression
It can indeed change the image compression. You can change the behavior by adding the "Override default image recompression" action before the action which is changing the images.
- Mon Sep 04, 2023 8:19 am
- Forum: Switch
- Topic: Number of pages of InDesign-file
- Replies: 6
- Views: 16018
Re: Number of pages of InDesign-file
You can lower the indesing saving time for all pages by lowering the preview resolution. But that may be a problem if you use the preview.
- Tue Aug 29, 2023 1:20 pm
- Forum: Switch
- Topic: Number of pages of InDesign-file
- Replies: 6
- Views: 16018
Re: Number of pages of InDesign-file
I think there is page information in the XMP? This Switch variable gives the highest page number in my test: [Metadata.Integer:Path="xmp:PageInfo/*[last()]/xmpTPg:PageNumber"] In InDesign this is of course not always equal to the amout of pages since you can start a document with any page ...
- Fri Aug 25, 2023 11:58 am
- Forum: Switch
- Topic: Script Expression
- Replies: 1
- Views: 6832
Re: Script Expression
See my reply here
viewtopic.php?t=4744
viewtopic.php?t=4744
- Fri Aug 25, 2023 11:57 am
- Forum: LEGACY scripting
- Topic: Error in script expression when using setPrivateData
- Replies: 2
- Views: 6614
Re: Error in script expression when using setPrivateData
Script expressions only have read access to the switch api.
If you want to set private data using a script expressions, then you can use the data mapper app. There you set the tag in the app and calculate the value using a script expression.
If you want to set private data using a script expressions, then you can use the data mapper app. There you set the tag in the app and calculate the value using a script expression.
- Thu Jun 29, 2023 12:04 pm
- Forum: Node.js scripting
- Topic: Database Values as NodeJS Parameters
- Replies: 7
- Views: 24139
Re: Database Values as NodeJS Parameters
Then I think the best option is to have some small reproducible sample and report it to Enfocus Support. Another workaround you could try: put the requesting of the property in a try catch, and if there is an exception, wait for 1 second or so and then request the property again. Even if the workaro...
- Fri Jun 23, 2023 5:27 pm
- Forum: PDF Creation
- Topic: Adobe Preset
- Replies: 8
- Views: 26094
Re: Adobe Preset
Is it possible that you are on Windows and Illustrator was started manually (not by Switch)?
On windows InDesign/Illustrator/Photoshop need to be started by Switch, otherwise the the communication with Switch won't work.
On windows InDesign/Illustrator/Photoshop need to be started by Switch, otherwise the the communication with Switch won't work.
- Wed May 31, 2023 6:51 pm
- Forum: Appstore
- Topic: Problem with File Pool Cleanup
- Replies: 8
- Views: 17351
Re: Problem with File Pool Cleanup
Hi Jan, the weird thing is, I can only use the folder picker to set the path, I can't set the path inline. What am I missing? I think it should be possible to add the path Jan suggests in the windows folder picker dialog. If you still can't access the location this way, then I think it's best to ch...
- Mon May 15, 2023 12:08 pm
- Forum: Flows
- Topic: Illustrator Package
- Replies: 1
- Views: 4389
Re: Illustrator Package
This is a list of Illustrator commands which you can use in scripting: https://ten-artai.com/illustrator-ccver-22-menu-commands-list As you can see, the package command is not in the list. It is necessary to do all the separate steps in scripting. So the script should get the list of links, place th...