Is it possible to store script settings with InDesign file?
Hi,
I have some crazy idea: is it possible to store script settings with InDesign file?
In that case scripters will be able to store those settings with file, and when script runs - it can check if those setting exists - if so - script can run without showing dialogue with parameters... (as all necessary parameters stored with indesign file), and of course we can force InDesign to show script parameters dialogue if we run it with alt/option key pressed while running this script. Maybe even different scripts will be able to share those settings and interact with each other.. we will be able to have settings that will be saved with file, or temp settings for current document or session (till InDesign is closed). With eventListeners and startup scripts we will be able to do scripts that would be able to check for updates, and automatically execute when we placing images and text, and so on.. this can be a whole InDesign scripting framework, that allow to write scripts that will use same libraries and ui so we don't have to write everything from scratch everytime and just included required libs..
so here is 2 main questions for now:
1) is it possible to store script settings with .indd file
2) who is intrested in creation InDesign scripting framework (because this only makes sense if many people will use it)
PS: I know that it's possible to store settings in external file, but this time I'm interested only for saving params with .indd
Ok, here is the labels parser I end with, actually it works extremely fast!
Thanks again, Harbs!
var labels = GetDocLabels(app.documents[0]);
function GetDocLabels(doc)
var idmlFile = File(Folder.temp + "/temp.idml");
doc.exportFile(ExportFormat.INDESIGN_MARKUP,idmlFile); // asynchronousExportFile works, but script fails as it try to execute before file fully exported
var folder = Folder(Folder.temp + "/temp_idml");
app.unpackageUCF(idmlFile,folder);
var designMap = File(folder + "/designmap.xml");
var valuePairs = GetValuePairs(designMap);
return valuePairs;
function GetValuePairs(file)
file.open("r");
var contents = file.read();
file.close();
var contXML = XML(contents);
var vals = {};
for each(var pair in contXML..KeyValuePair)
vals[[email protected]()] = [email protected]();
return vals;
//> START of DELETE FOLDER Function
function deleteFolder(path)
removeFolder = path; // path to folder that need to be removed
filesToRemove = removeFolder.getFiles();
for(i = 0; i < filesToRemove.length; i++)
try
innerFolders = filesToRemove[i].getFiles();
if(innerFolders.length >= 1)
for(f = 0; f < innerFolders.length; f++)
innerFolders[f].remove()
catch(e){}
filesToRemove[i].remove(); // remove temp files once we done
removeFolder.remove();
}//< END of DELETE FOLDER function
// remove temp files once we done
deleteFolder(Folder(Folder.temp + "/temp_idml"));
File(Folder.temp + "/temp.idml").remove();
// DUMPER FUNCTIONS
function dump(o)
out = "";
for (var p in o)
out += p + ": " + o[p] + "\n";
return(out);
function alert_scroll (title, input)
if (input instanceof Array)
input = input.join ("\r");
var w = new Window ("dialog", title);
var list = w.add ("edittext", undefined, input, {multiline: true, scrolling: true});
list.maximumSize.height = w.maximumSize.height-100;
list.minimumSize.width = 550;
w.add ("button", undefined, "Close", {name: "ok"});
w.show ();
alert_scroll ("Document Labels", dump(labels)); exit();
Similar Messages
-
Is it possible to lock my settings with a different password from the lock code
Is it possible to lock my settings with a different password from the lock code
To the best of my knowledge there is only one Pass Code per se
You can check here > iPhone User Guide -
OSB: Is it possible to change throttling settings with WLST?
Hi all,
I am trying to find a solution to change the throttling settings of a business service with WLST, since it is not possible to set it in the customization file.
I already know the parameter alsbImportPlan.setPreserveExistingOperationalValues(boolean) to preserve or change the operational values with the imported jar file, but I cannot find how to change the parameters separately for a business service (e.g. throttling state, max concurrency).
Thanks for any help,
KatjaHi Fabio,
thanks for your approach. Could you give me some more ideas how to do that exactly? What do you mean with "write a code"? With WLST it does not work, I think. So you mean some code to extract the jar, change the xml, package the jar again and then deploy it? We need the changes at deployment time, because the settings have to be adjusted for the different environments.
Best regards,
Katja -
Probelm with InDesign files...
Hi everyone,
We are working in extraction process for InDesign CS3. And we have the script to extract all stories from InDesign file. We got this script from adobe forums. And we added some lines into the script as per the needs. Still we are not found any issues in this script and its working greatly.
But now we have one set of InDesign files for text extraction. In these files when we try to extract texts the script throws an error like "Failed to Import". Refer attached snapshot. We have tried but unable to solve the problem.
Herewith i attached the files for your reference. Please find out the script & InDesign file in the attached zip file.
Can anyone look into this and help me out.
Thanks in advance
ThiyaguHey again!
I figured it out. Just made a complete new document and tried again.
This time everything works as it's supposed to.
I assume the problem has something to do with the fact that I overtook the job I am currently working on from a colleague and thus there was some form for corruption or similar.
At least when starting from a fresh it's all working fine again.
But you just gave me the idea to check this possibility so I rated your answer as helpful.
However I have no clue what to do with the old document in order to change that. I guess it's one of those InDesign mysteries that so often occur but I also assume that copying and pasting will be sort of a solution..., well here and now at least.
So unless you know what could be the reason for the corruption I'll thank you very much for your time and kind help. -
Is it possible to access device settings with MIDP2.0?
Assuming that the MIDlet has access to all the domains, in MIDP2.0 security model, can it access device settings? For example, can the application turn the device to "MUTE"?
Assuming that the MIDlet has access to all the
domains, in MIDP2.0 security model, can it access
device settings? For example, can the application
turn the device to "MUTE"?It's the same as asking "If the earth were flat, would I be able to fall of the edge". Yes you would, but the earth is flat, so the question is irrelevant.
So no, you cannot do that! -
Is it possible to insert coloured glyphs with InDesign CS5?
I write about card games and use (multiple) red 'heart' and 'diamond' symbols. If it is not possible to insert coloured glyphs, can anyone suggest a quick way of getting around this problem (other than copy/paste)? Many thanks, Zeb
Sandee,
Do you actually load a typeface (cardshark bold, perhaps) and then press a key (h or d) to make the heart or diamond? Then all you need are a character style for red and a GREP style to automatically change the letter h in cardshark bold to the character style.
Uh -- no. Under those circumstances it would not work. A GREP style can change all letters 'h' and 'd' to red, but not "just those in cardshark bold". This would only work if this font has been applied in a paragraph style that also has the GREP style added.
It does work, however, with non-Symbol fonts such as Arial Unicode MS, where you'd insert the correct glyphs via the Glyphs palette. This works because the heart and diamond glyphs are encoded into Unicode. -
Connect Extends Script Toolkit with InDesign Server
Hi folks,
I'm trying to connect my Extends Script Toolkit installed with the InDesign Server CS4 on a XServe Mac with a running InDesign Server thread. This won't work, see screenshots. Any hints on this topic? Are their any log files written by the Extends Script to solve the problem?
Cheers TinoHi Sheldon,
With CS4, InDesign Server no longer supports opening PageMaker files. This info is included in the Release Notes. InDesign CS4 will still open them so you could pursue a solution there.
Regards,
Jeffrey O'Donald
Adobe -
Is it possible to store preferences per psd file?
For several projects we use different (grid etc) settings in the preferences.
Is is possible to store them along with the psd file in such a way
that they are or can be restored when the psd file is opened?
When this it not possible, what are the best alternatives?
Regards,
AndreAndre (the other one) wrote:
For several projects we use different (grid etc) settings in the preferences.
Is is possible to store them along with the psd file in such a way
that they are or can be restored when the psd file is opened?
When this it not possible, what are the best alternatives?
No, this is not possible in the way you describe since the PS Preferences are general to the application and not to individual files.
Having said that, certain parameters are kept with the saved file and will be preserved when it is opened.
I can't think of any alternative way to do what you ask, other than keeping different sets of PSP files for loading for certain projects. -
Store personal settings of an iChart
Hi all,
is there a possibility to store personal settings of an iChart? We are using xMII 12.0.2, and I did not find a way. A colleague who is using 11.5 told me, that there was the possibility to save the setting in that version.
Was there a change in the new xMII version?
Regards
MichaelJeremy,
well, that's bad news. Are there any alternatives? For us, this is a big loss because it is an important functionality. We only can create a general default, but want the user to be able to choose exactly what she wants and be able to save it for the next day.
Are there plans for the future to reimplement it, e.g. with Swing or Flex?
With a sigh
Michael -
Can i store a PDF with a Music album?
Does anyone know if it is possible to store a PDF with a music album that I have imported into iTunes?
All insights, tips, and suggestions will be appreciated.
Best,
Gabriel.Welcome to the Apple Community.
Yes, it's possible to do that with 3rd party software such as Air Doc Viewer.
If you want to upload documents that aren't for use with iOS devices this User Tip might be of interest. -
Issue: impossible to sync my settings with the adobe account
I'm logged-in in Adobe Creative Cloud, but still Photoshop CC doesn't seem to give me the possibility to sync my settings with the account.
If I go in Photoshop what I see is this, and if I click on "Sync settings now", "Manage account online" etc, nothing happens.
So, how do I make sure that I got everything rightly set to do the syncing, and how do I actually do it?
Thank you!Yes I tried by closing and relaunching. So maybe I'm missing something in the actual synching passage. Can you summarize in steps what should I do to sync the whole thing so I can check if I'm doing it right? Thank you
-
Files with same file name in IFS
Hi,
Does anyone know if, as IFS uses a "reference model files system", it is possible to store in the database 2 files with the same name (I'm talking to unfoldered files, but I suppose it will be the same for foldered files). If yes, how can I make the difference between the two files using the java api ?
Thanks in advance,
Roger.Of course Yes, it's not a problem to store two files with the same file name... but they can't be foldered in the same folder.
-
Store a container in separate files
Is it possible to store a container in separate files?
For example: I want to have one container only with the name, tv_show. In tv_show, I have millions of documents. Everytime, when I access, my path would be "dbxml:/tv_show" (something like this).
From what you are saying, does that mean I should create numbers of containers for the tv_show?
1. What are the advantages of creating numbers of containers and disadvantages of it?
2. Should I have the exactly the same documents across the different containers or I should separate them?
3. If the answer for the previous question is "separate them", how should I know which documents are in what container(s)?
4. Or, it is possible to have the only container, tv_show. When thousands of users try to update nodes, it won't reduce the "read-only" access speed for the other users?
Please forgive me if those questions do not seem clear or seems dumb. I am pretty new to the sleepcat DB, and I am very curious about it. -
InDesign file with layers to the Adobe Creative Cloud?
Is it possible for me to upload an InDesign file with layers to the Adobe Creative Cloud please?
Hello, Yes you can upload a Indesign CC file with layers and download the same file with the layers. It is still the orginal file as there is not any changes made to the file during the upload or download process from the Creative Cloud.
If you find that this resolves your issue or was helpful, could you please take a moment to come back to this discussion and mark the post as helpful. Doing so greatly benefits your fellow users
Thanks
Scott V -
I am using a Photoshop cs2, and I wonder if it is possible to keep the settings of the guidelines when closing an image, with the actual document ? It would be nice to have the guidelines locked down, I find it than when opening the same or another image, the guidelines are not locked, it is annoying to have to lock them down again. and it would actually be nice, to ba able to give specific directions when placing the guidelines. Thanks
Then why are the guides unlocked when I reopen a document that I saved with the guides locked ?
Thanks.
Maybe you are looking for
-
Installation failed when using Jumpstart Server to install SUN Netra T1 200
I have a problem to install a couple of Sun Netra T1 200 Servers with a Jumpstart Server. The Jumpstart Server is set up and I have executed the add_install_client Script. If I boot the Server which should to be installed the server crashes after get
-
Oracle JDBC thin driver 10g exceptions
Can anyone tell me where I can find more resources about exceptions what I should expect if one node in cluster fails. Let assume that I am using WebLogic server. Thanks,
-
How to create rescue and recovery partition for my thinkpad edge 11
Hi, I'm using thinkpad edge 11 with win 7 home Premium 32 bit. Before, i tried to restore to factory setting, there is a drive partition of rescue and recovery in my thinkpad. But, when I was trying to restore to factory setting, I missed the steps a
-
Mail shutting down unexpectedly
It started happening a couple of weeks ago. Mail keeps shutting down abruptly in the middle of composing a message, reading a message or simply without any action. I have three user accounts on an iMac 24" OS: Snow Leapord 10.6.4 and running Mail cli
-
After my windows 7 update, Thunderbird can't start correctly, how to solve?
After my windows 7 update just now, Thunderbird can't start correctly, it says not responding. How can I fix this? or at the least rescue my data.