Is it possible to store parameters to script with the InDesign file?

Hello

I have a crazy idea: it is possible to store parameters to script with the InDesign file?

In this case the Scripting Guys will be able to store these settings with the file, and when the script runs - he can check if those setting exists - if so - script can run without showing the dialog with the settings... (like all the necessary parameters are stored with the indesign file), and of course we can force InDesign to display the script dialog parameters if run us with the alt/option key pressed when executing this script. Maybe even different scripts will be able to share these settings and interact with each other... We will be able to have the settings will be saved with the file, or temp settings for the document assets or session (till InDesign is closed). With eventListeners and commissioning, scripts, that we will be able to make scripts that would be able to check updates and automatically run when we placing images and text and so on... This can be a set framework of InDesign scripting, allowing to write scripts that use ui and same libraries so we don't have to write everything from scratch every time and just included required libs...

So here are 2 great questions for now:

(1) is it possible to store script with .indd file settings

(2) who is interested in creating InDesign scripting (because it only makes sense if it will use a lot of people)

PS: I know that it is possible to store settings in an external file, but this time, I'm interested only to save the params with .indd

The syntax of the function to write the label:

app.activeDocument.insertLabel('myLabel', 'myLabelValue');

IMPORTANT: If you forget the name of the label, the label is LOST! Really? YES, REALLY!

The syntax of the function for the reading of labels:

var myLabel = app.activeDocument.extractLabel('myLabel');

http://indisnip.WordPress.com/2010/07/31/saving-script-data-within-document/

Tags: InDesign

Similar Questions

  • Is it possible to synchronize the copied file in the local folder with the original file in the network?

    Hello

    I copied a file from the shared network folder and it is really important document, so I need to use this file as a file off the local drive connection and backup as well just in case where the cause accidental, but I don't want to save it each time and don't want to use the original file in the network.

    Is it possible to automatically synchronize the copied file in the local folder with the original file in the network?

    Thank you

    Absolutely without interruption would require a program to write that monitors files on the file locks and triggers a sync as soon as he sees a change.  So, since we cannot just write a program, the best thing is either:

    (1) an icon on your desktop that you can click each time you want to synchronize "synchronize my files now.

    or

    (2) plan the "my sync files' to run automatically every x minutes.  It could be a batch script that checks to see if the file is more recent and copies only files that have changed.  Although perhaps a little aggressive, you could plan this thing check-and-copy-a batch file - again to run every 60 seconds.

    Batch files allow you to control the operations very directly, but Microsoft has also made a (not supported) tool called SyncToy who does all the same things, but has a graphical interface to select your options. It can be programmed to run automatically on a schedule.

  • Is it possible to set up SMTP authentication with the vCSA 5.5?

    Hello.

    I have a vCenter Server Virtual Appliance 5.5 and SMTP server that requires SMTP authentication with port 587.

    I found the advanced settings "mail.smtp.port", but I found no parameters as 'mail.smtp.username' and 'mail.smtp.password '.

    Is it possible to set up SMTP authentication with the vCSA 5.5?


    Best regards.

    No, can't be done.

    Set up a separate SMTP relay that would make authentication for you. as explanation then post

    Configuring vCenter for e-mail with SMTP authentication. Adventures in a virtual world

  • Is it possible to record "Mozilla Persona" - password with the FF password manager?

    Is it possible to record "Mozilla Persona" - password with the FF password manager?
    Thank you
    pollti

    Persona.org or login.persona.org is present in your Exceptions list?

  • Portege M400: Is it possible to receive and make calls with the SIM card

    Is it possible to receive and make calls with the card SIM module in the Portege M400?

    I know that you can send and receive sms messeges, which, according to me, the software is not all good because you can't hold much, and you can't send to ems or mms.

    But there may be other software here?

    Hello

    What software do you mean exactly?

    As far as I know that the MobiLink was preinstalled on some units Portege M400.
    This software supports these features:
    Send and receive SMS, composition and read TEXT messages in several languages, compose and send to multiple recipients, the mobile contacts address book support, Rich edit for the launch of URL and Email using embedded addresses.

    As you can see that you can not use this software to make calls!
    And unfortunately other software does not know me :(

    With regard to the MobiLink Communications Software Suite;
    The details can be verified here:
    http://www.novatelwireless.com/products/solutions/MobiLink.html

    Greetings

  • Is it possible to use iCloud shares photos with the two opening and Photos at the same time?

    Is it possible to use iCloud shares photos with the two opening and Photos at the same time?

    Non - PEAK is not a feature of iPhoto or Aperture - this is new with Photos

    LN

  • Hello! Is it possible to convert a trace made with the Brush tool a blob in a simple brush trace (a simple vector line - not two lines with a filling in between)? Thank you very much for your help!

    Hello!

    Is it possible to convert a trace made with the Brush tool a blob in a simple brush trace (a simple vector line - not two lines with a filling in between)? Thank you very much for your help!

    No, I don't think.

  • Is it possible to use two different computers with the same adobe - ID and the same adobe license?

    Is it possible to use two different computers with the same adobe - ID and the same adobe license?

    Hi Morten,

    Yes, you can have your subscription or your license installed on two different computers with the same adobe id, however use one at a time.

    Please let us know if you have any questions, more about it.

  • It is possible in "CC Indesign" to export the indesign file to .mobi format?

    HY!

    I have a question for InDesign CC, the new version... I needed to export the indesign file to the domain .mobi for Kindle support? I can do it with this version? Or it is possible with InDesign CS6?

    Thank you

    Sonia Vairo

    The plug has not been updated since InDesign CS6.

    You can easily convert your file produced ePub from InDesign CC2014/CC2015 with the Kindle Previewer:

    http://www.Amazon.com/GP/feature.html?docid=1000765261

  • If I copy and paste a comment in a pdf when I create a comment copied xfdf file is not included.  Is it possible to add these comments copied to the xfdf file?

    If I copy and paste a comment in a pdf when I create a comment copied xfdf file is not included.  Is it possible to add these comments copied to the xfdf file?

    Hi Steve Whipple.

    This link (Acrobat Help |) Import and export comments ) seems relevant to your query. Please let me know if it allows you to export xfdf file comments.

    Kind regards

    Rahul Tyagi

  • Is it possible to save photos from lightroom without the original file?

    I recently imported photos into lightroom, but I did not back up the original files on my computer and they are deleted from my card.  The images still appear in lightroom.  Is it possible to save them from lightroom without the original file?

    Your images are not - and have never had - in Lightroom, they are just referenced in the Lightroom database.

    Lightroom generates jpeg previews of the originals, however, and you can export users export preview plugin of Rob Cole: robcole.com - PreviewExporter.

    To be clear, however, that are not originals.

  • Work with the same files - is possible?

    Hello

    I would like to run several identical PDF files so that in each separate file I can make bookmarks and comments on various topics that relate to the same content, rather than attempt to differentiate between bookmarks and comments.

    Clearly, I could just duplicate the master file several times, I get it. But what I really want to do, it's often update the master file by adding new PDF files and subsidiary files update automatically with new content without disturbing the existing bookmarks etc. Eventually this will save me a lot of time.

    Please don't tell me that such a straight forward task cannot be achieved within the Acrobat software. If this is the case is an app pack or third-party software that can do?

    No, this is not possible, unless you use an Action or script to insert the new file in the existing files, or something like that. This can happen automatically, in any case.

  • Run a script with the command sudo bash

    Hello

    I'm trying to run a bash script with comments script Manager package. There is a sudo command in the script and he asks me problem.

    First mistake is: sudo: Sorry, you must have a TTY to run sudo

    So I tried to run the command sudo with ssh localhost sudo t t < command > but I get a new error (and even one): tcgetattr: Inappropriate ioctl for device

    I don't know how to run as the root user is not allowed to connect.

    So, launching a vCO sudo command really possible?

    Thank you!

    Sudo problem is quite easy to solve; "edit/etc/sudoers on the endpoint point ssh and then comment or delete the line"Defaults requiretty". That should fix that right up. What command are you trying to run?

  • Is it possible to synchronize an existing database with the database CRM from Adobe?

    I have a database that is hosted locally customers, and I would like to sync it with the database hosted on Business Catalyst without manually having to import/export a list of customers. Is there currently a way to do this?

    Hello

    Look in the API as a possible solution to this...

    "This system has a broad framework of the API (application programming interface) that allows you to communicate, synchronize or take action with your own external application." For example if you are an online store and you want to adjust the inventory levels in real time as shoppers buy from you, then you can simply use this API. Other uses of the API include the ability to synchronize your entire customer database on this system with the one on your desktop. The scope of the API will give you indeed freedom to undertake all kinds of specific tasks to the success of your business"

    - http://kb.worldsecuresystems.com/635/bc_635.html

    Kind regards

    -Sidney

  • I think someone changed my MacBook Air charger, is it possible to identify one that came with the computer? It has a serial number attached. Please help, thanks!

    I think someone changed my MacBook Air charger, is it possible to identify the one supplied with the original computer?, if it has no serial number connected to the computer?, thank you!

    There is no serial number match between the computer and the charger. All MBA models came with a 45W charger and there is no danger in using a higher power charger.

Maybe you are looking for