OS X Scripts Menu vs. ID Scripts Palette

I can access the scripts of all my applications via the scripts menu
in my OS X menu bar, but I can't put the original Scripts Panel folder
in Library > Scripts and an alias in the ID Scripts folder because
then the scripts don't appear in the scripts palette. I can put an
alias of the Scripts Palette folder in Library > Scripts and this
allows access to the ID scripts, but this slows the scripts menu way,
way down. Anybody know of a way to get the ID scripts into Library >
Scripts without slowing the scripts menu down or losing access to them
via the scripts palette?
Thanks,
Roy McCoy
Rotterdam, NL

Shane Stanley wrote:
> But you can put an alias to a folder in ID's Scripts Panel folder.
Thanks! My first reaction was to doubt that I wanted an extra
folder level there. But then I realized that my scripts are all
in subfolders of the Scripts Panel folder anyway, so I moved
all these folders to an InDesign Scripts folder in Library >
Scripts and then copied aliases back. Bringing the ID scripts
into the scripts menu also this way causes a delay, but it's
only slight and the beachball doesn't appear.
I'm a little curious as to whether it's possible to modify
the top of the scripts menu or not. Apparently because I wanted
all my scripts at the computer rather than the user level,
nothing happens when I select Open [current application] Scripts
Folder or Open User Scripts Folder. The first doesn't bother me
because the current app is one of the folders below - i.e., it
would be redundant if it did work - and the second obviously
shouldn't bother me since I didn't (and don't) want any User
Scripts anyway. But it would be nicer if a simple Open Scripts
Folder command (without the triangle and subchoices) opened
my main Library > Scripts folder, or, failing that, the two
presently inactive commands did at least something - if
Open User Scripts Folder opened Users > Library > Home >
Preferences > Adobe InDesign > Version 6.0 > en_GB > Scripts >
Scripts Panel, for example - so I could access my invaluable
Cocaine.scpt, Heroin.scpt and Marijuana.scpt via this route
also. :-)
Most simply put, how do I restore basic functionality to the
first two lines of the scripts menu? I thought just making sure
I had a Users > Home > Library > Scripts folder would do it,
perhaps with some content for this folder being required, but
I've tried putting various things in it and nothing's worked.
So maybe it should be named "Scripts Folder"? Or be located
somewhere else? Or???
Thanks again,
Roy McCoy
Rotterdam, NL

Similar Messages

  • Scripts have disappeared from my scripts palette. Simple fix?

    I'm 99.8% sure I haven't renamed any folders. My scripts are available in my IND>Scripts>Scripts Panel Folder, but they are not visible in my scripts palette anymore. I think this must be something obvious, as I have only seen one other person complaining of a similar issue (unresolved). I've trashed my prefs etc. I've been having this problem for a month or two, but am reluctant to reinstall. Does anyone know what my issue is? I am in IND4 on a 10.4.11 powerpc mac. Thanks in advance.

    Okay, so Jongware solved my issue with this:
    "As for your disappearing scripts, right-click on any script and select "Reveal in Explorer/Finder" (something like that, anyway). Are all your scripts still there? If not, there's your problem If they are, you could try to reset your preferences (http://livedocs.adobe.com/en_US/InDesign/5.0/help.html?content=WSa285fff53dea4f8 617383751001ea8cb3f-6d1e.html) (be sure to read Peter's instructions on how to save custom settings you might want to keep)."
    I have never used a keyboard shortcut to reset my prefs, I always just trashed the folder; for some reason the keyboard shortcut did what manually trashing could not, and I have my scripts back.

  • CS3 Scripts Palette is broken...

    I'm running InDesign CS3 on a Power Mac G5, Mac OS X 10.4.11. Out of the blue, the scripts palette stopped working correctly. It won't show any installed scripts or anything for that matter. It just displays a blank palette. I've tried removing preferences and restarting InDesign, but it hasn't helped. Has anyone else experienced this or a similar problem?
    Thanks.

    Did any of the folders get renamed? Like the Scripts folder or Scripts Panel folder? Permissions issue? I'd check that first.
    But at my office we've also seen some InDd installs go belly up and pallets are there, but have no content or simply don't work. We just do a reinstall to fix it. I have no explanation as to why.

  • Possible to script palette menus Save and Load Curves?

    Is it possible to script CS4 Photoshop's palette menus? Specifically, the "Save Curves Preset ..." and "Load Curves Preset" ... of the Adjustments Palette.
    I have 600 images, some of which have layer>new adjustment layer>curves applied.
    I want to save the curves using the image name. Later, I want to be able to load the appropriate curve.
    E.g., for image001.tif, the curve would be image001.acv
    (I already have a loop set up to iterate through the files and get the file names.)

    Thank you.
    I got both scripts working without JS or AS errors, but, when trying to load .acv files generated by the second script, CS4 Photoshop gave an error:
    "Could not load the curves because the file is not compatible with this version of Photoshop"
    (The loading script works fine when loading .acv files created directly from Photoshop.)
    The only change I made to your Save Curves code was:
    FROM: var myACV = new File('~/desktop/myCurve.acv')
    TO: var myACV = new File(file);
    and made the code a function:
    saveCurves(file)
    YOUR CODE HERE
    so that I could incorporate it into the Applescript.
    Maybe that was naive (I'm not very knowledgeable about JS).
    Here are the scripts I'm using:
    SAVE CURVES:
    set gammaFolder to "/Users/me/Desktop/myproject/gamma/"
    tell application "Finder"
              set TheFolder to choose folder
              set FileList to every file of entire contents of TheFolder as alias list
    end tell
    repeat with theFile in FileList
              set thefilename to theFile as string
              set text item delimiters to ":"
              set thefilename to last text item of thefilename --remove path
              set text item delimiters to "."
              set thefilename to first text item of thefilename --remove extension
              tell application "Adobe Photoshop CS4"
      activate
      open theFile
                        tell current document
                                  if exists layer "Curves 1" then
                                            set current layer to layer "Curves 1"
                                            do javascript "saveCurves('" & gammaFolder & thefilename & ".acv');
    function saveCurves(file) {
    -- SAVE CURVES JAVASCRIPT HERE
    };" --show debugger on runtime error
                                  end if
                        end tell
              end tell
    end repeat
    LOAD CURVES:
    set gammaFolder to "/Users/me/Desktop/myproject/gamma/"
    tell application "Finder"
              set TheFolder to choose folder
              set FileList to every file of entire contents of TheFolder as alias list
    end tell
    repeat with theFile in FileList
              set thefilename to theFile as string
              set text item delimiters to ":"
              set thefilename to last text item of thefilename --remove path
              set text item delimiters to "."
              set thefilename to first text item of thefilename --remove extension
              set acvFile to gammaFolder & thefilename & ".acv"
              tell application "Finder" to set acvExists to exists my POSIX file acvFile
              if acvExists then
                        tell application "Adobe Photoshop CS4"
      activate
      open theFile
                                  tell current document
                                            if not (exists layer "Curves 1") then
                                                      do action "Create Curve Layer" from "MyActions"
                                            end if
                                            set current layer to layer "Curves 1"
                                            do javascript "loadCurves('" & gammaFolder & thefilename & ".acv');
    function loadCurves(file) {
    -- LOAD CURVES JAVASCRIPT HERE
    };" --show debugger on runtime error
                                  end tell
                        end tell
              end if
    end repeat

  • Any script palette plug ins for illustrator?

       Does anyone know of a plugin that can be set up to launch scripts?  I've got many I use often and I'd like a floating palette I can just keep open to launch them from rather than having to setup actions everytime I launch illustrator.

    I would not know, that stuff is out of my league… Im a hobbyist scripter not any kind of developer… Don't have the mindset or the time to get that involved… If I needed some thing like that then I just know where I would go…

  • Drop-down menu not working on palettes when on second screen.

    Running OS X 10.10.2 on a Macbook Pro with a second screen. The applications are displayed on a large 24 inch monitor and palettes are on the built-in laptop screen. Often, but not always, the drop-down menu on the palettes will not work when on the built-in screen. If the palette is dragged to the larger monitor it works fine. Sometimes it works appropriately and there is no telling when it will work or not work. When you click on the drop-drown icon it highlights but no menu appears. The happens with CC 2014 Illustrator, InDesign and Photoshop.

    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • How to access script from within Bridge

    I have considerable experience scripting InDesign, but this is my first
    Bridge script...
    The following script does what I want from within the ESTK, but I have
    no idea what to do to make it runnable from within Bridge... :(
    Any pointers?
    var brSel = app.document.selections[0].spec.toString();
    var bt = new BridgeTalk();
    //brSel = brSel.toSource();
    bt.target = "indesign";
    theScript = "var IDsel = app.selection[0]; \n";
    theScript += "if (IDsel instanceof Graphic){ \n";
    theScript += "var theGraphic = IDsel;\n";
    theScript += "}else{\n";
    theScript += "var theGraphic = IDsel.graphics[0];\n";
    theScript += "}\n";
    theScript += "var theFile = File(\""+brSel+"\");\n";
    theScript += "theGraphic.itemLink.relink(theFile);\n";
    theScript += "theGraphic.itemLink.update();\n";
    bt.body=theScript;
    bt.send()
    Thanks,
    Harbs

    Harbs,
    There isn't anything like a scripts palette in Bridge.
    Because your working on a selection, you'll need to add a menu item to bridge.
    You can also navigate to the folder containing the scripts and double click it. But then the script is the selection...
    Bob

  • Script to assign scaling attributes to picture box needed

    Hi everyone. Originally asked this in the InDesign forum but seems it's a task that needs some kind of custom solution so was suggested that I tried here...
    I am working on a project where I need to bring numerous links of varying dimensions (Illustrator files in this case) into InDesign at the same scale so that they are proportional to each other.
    • I have a master page with four picture boxes that require the contents to be linked in at 5% and two picture boxes that require the contents to be lined in at 10%
    • This master page is to be used hundreds of times and I have potential several thousand indivdual links to bring in.
    • The pages need populating one at a time and links cannot be bought into InDesign en masse and rescaled together.
    It seems that the scale of the placed content should be set as an attribute of the picture box so that anything linked into it comes in at the pre-assigned scale (that the frame also automatically resizes to the content and maintain it's link to the live caption would be a bonus)
    Could be looking at lots of repetitive trips to the menu bar if nothing out there. Any ideas appreciated.

    Scripting logic can set the scale of any image/graphic after it has been placed into a container… You can change behaviour for empty boxes but a given percentage is NOT one of them… What you should be looking for is to create an Excel or FMP database with page number, image order on page, image scale factor & image file path… Save the data to text file as CSV or TDT. Script can read this data in create new pages off your master as required, place links 6 per page scaling each… It's possible you could do this with one trip to the scripts palette…

  • Exceptions from script menus open ExtendScript Toolkit

    I'm having trouble with exceptions thrown by scripts that appear in custom menus.
    Whenever an error is encountered when thrown by a script executed from one of these menus, it causes the ESTK to open and break on the offending line. For extra frustration, this happens even if the exception originates from within a try/catch block.
    To outline what is happening:
    I create a file, throw_error.jsx, in which I put one line:
    throw "error";
    When run from my menu, it opens the ESTK:
    If I put this file in the scripts folder and run it from the scripts palette the exception is shown by the standard InDesign script-exception dialog:
    Any ideas how to stop the ESTK catching the error?
    [Edit] Sorry, I can't get it to embed the images properly [/Edit]

    Don't use Alt for script shortcuts; holding down Alt while firing up a script in InDesign instructs InDesign to open the script in ESTK.
    Dave

  • Can I make the screen follow where my script is? Clarification in comments.

    Hi everyone,
    Here is what I want to do. I have a script that find/replace in all my document. It runs for half an hour, line by line. But InDesign stays on the same page all this time, so I can't see where it is, what it changes LIVE. I want to know if there is a trick that will make the screen follow the selected text that need to be change, so I can see it.
    Thanks in advance,
    Olivier

    Hi Olivier!
    Calling the "select()" method might result in what you want.
    The following selects a text frame in my test document, and it also shows the page that the object is on, if another page is in view:
    app.activeDocument.pageItems.itemByID(207050).select()
    (Of course "207050" is a valid id for one of the objects in my open document)
    So if you have a result of "found objects", you could possibly juist call the ".select()" method for each object that you would like to set focus to.
    Sometimes "Enable redraw" needs to be checked, from the popout menu of the script palette. I'm not sure that's the case here though.
    Best regards,
    Andreas Jansson
    Message was edited by: Andreas Jansson

  • Script for InDesign CS6 - create multiple, prenamed layers

    I created a script for Illustrator CS6, in ExtendScript Toolkit, that will create multiple, prenamed layers...see below...
    //Apply to myDoc the active document
    var layerName = LayerOrderType;
    var myDoc = app.activeDocument;
    //define first character and how many layers do you need
    var layerName
    var numberOfLayers=0;
    //Create the layers
    for(var i=0; i<=numberOfLayers; i++)
    { var layerName = ":: GRADIENT";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: STRIPES";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: LEGAL";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: BLK BAR";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: FLAME";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: LOGO/TYPE";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: TRIM,ETC";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: LOEC INFO";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    // Moves the bottom layer to become the topmost layer
    if (documents.length > 0) {
    countOfLayers = activeDocument.layers.length;
    if (countOfLayers > 1) {
    bottomLayer = activeDocument.layers[countOfLayers-1];
    bottomLayer.zOrder(ZOrderMethod.BRINGTOFRONT);
    else {
    alert("The active document only has only 1 layer")
    I tried to use this exact code to replicate the same scenario in InDesign but it doesn't work.
    Can anybody help me out!?
    Thanks in advance

    Marijan Tompa's scripts are very nice and useful, however, for this simple task you can try create your own wiht this code:
    app.activeDocument.layers.add ({name: "GRADIENT", layerColor: UIColors.red});
    app.activeDocument.layers.add ({name: "STRIPES", layerColor: UIColors.lightBlue});
    app.activeDocument.layers.add ({name: "LEGAL", layerColor: UIColors.gray});
    //merge existing document layer to bottom layer (in this case original layer will be merged to 'GRADIENT')
    var myDocument = app.documents.item(0);
    var myLayerA = myDocument.layers.item(2);
              var myLayerB = myDocument.layers.item(3);
              myLayerA.merge(myLayerB);
    alert("Layers created!");
    assume, your document has one layer.
    Script creates three new layers, they appear in Scripts palette in this order:
    LEGAL
    STRIPES
    GRADIENT
    and merges 'old' layer to bottom layer of newly created set (GRADIENT).
    sure, you can add as much layers as you need, just don't forget modify LayerA and LayerB numbers accordingly.
    Or disable second part of the script at all, if you don't want anything to be merged.

  • ESTK vs UI script behavior

    Hello,
    I observed some differents in script behavior depends on running from ESTK or InDesign script palette.
    Script is working with 2 docs, but one of them is hidden (no window layout).
    Read data from hidden one are used for seting pageItems on second (visible, active) one.
    Both ways script work with no errors, but some read data are incorrect when I run from ESTK, so some of built pageItems looks different.
    Script is saved before run.
    Are some app.preferences ommited when script goes from ESTK?
    It looks like some default properties for textFrames..., tables..., others objects..., add() method are based on different sets,
    depends on where I start script to work from.
    What should I pay attention at?
    Thx to all with patience..

    Without more details, it's just about impossible to guess what's wrong...
    Harbs

  • Illy CS3 Automating a Script

    This probably sounds redundant
    over and over again , automating a script, but is there a way of assign
    ing a keyboard shortcut
    or run the
    script in an action?  I use mucho a script written and generously shared by JET to joinnearest points.  It's a pain to have to click on file and then scripts and then select the script each time.   I would like to eliminate 2 clicks (or mashes as they say in the southern states).  Is there a way to do this within the script (adding a lline)?
    Guidance will be appreciated.

    This Action-Script bug has been present for several versions, at least
    Correct. I have been complaining about this bug for four versions now.
    It has become my practice to do this:
    I keep an Action defined in my Actions palette named JET_CurrentScript. When it becomes clear to me that I will be repeatedly using a script in a work session, I go ahead and use InsertMenuItem to insert the step in that Action.
    This is not a fix or even a workaround. It just lessens the tedium in certain circumstances. It becomes just as tedious, of course, if you have to do that for multiple frequently-needed scripts with every launch (you know--like having to reset your palette settings in Swatches, Doc Info, etc.)
    Illustrator's script access interface--like too much in Illustrator--is half-baked. Sloppy. Rushed-to-market. Compare to InDesign's Scripts palette.
    Now that ScriptUI provides for creation of floating dialogs (and supposedly modeless palettes--something else that's quite problematic with Illustrator's scripting implementation), one can combine several scripts into one dialog to handle multiple user inputs. I may get around to doing that with closely-related groups of my scripts, but am currently just getting acquainted with the rather tedious ScriptUI model.
    There are ways to make a script run when the program is launched. So it may be conceivable to devise a startup script that would launch a script containing such a multi-purpose palette. But I haven't monkeyed around with that yet, because it would be dependent upon the afore-mentioned modeless dialog working correctly--you wouldn't want a modal dialog to appear whenever you launch the program.
    I'm certainly no advanced Javascripter; I'm a self-motivated, self-trained "student" and "experimenter" when the mood strikes.
    I'm gratified, by the way, that some of you seem to fiind my Join scripts handy. I consider the functionality indespensible in my own work, which is why I hacked them out. But it is absolutely absurd that one has to resort to custom scripting to do something that should so obvously be a standard function in the program.
    JET

  • Shortcut for a Script

    How do you create a shortcut for a script? I'm not referring to a keyboard shortcut.

    Hi John,
    I am referring to the physical location of the script.
    Here are some explanations of the shortcut:
    1. (From Dave Saunders)
    Consider Using Aliased Sub-folders
    Having scripts located physically inside the application folder can be somewhat inconvenient, particularly if you are a scripter, working on the scripts themselves, rather than just using them as tools. But even script users might be frustrated if they forget that the scripts are there and for some reason re-install InDesign, obliterating the Scripts folder in the process.
    While you could use an alias of the whole Scripts folder to work around this issue, I have found it better to work with aliased sub-folders. This allows me to keep my scripts in folders inside my Documents folder, while for some projects, I have a Scripts folder associated with the project itself for custom scripts that apply to just that project.
    2. (From page 4 of the InDesign CS3 Scripting Tutorial)
    You also can put aliases/shortcuts to scripts (or to folders containing scripts) in the Scripts Panel folder, and they will appear in the Scripts panel.
    3. Save the script as a text file with the file extension ".js" and put itor an alias/shortcut to itin the Scripts folder in the Presets folder inside your InDesign folder. Run the script from the Scripts palette.

  • Mac file location of InDesign Scripts

    Hi quick question.
    I do not own a mac and thus anyone with one would be able to answer this quite easily.
    I have a .jsx (javascript) file which I would like to run.
    If simply copy it into the preset folder will it show up in the scripts palette? as on a PC?
    Can someone tell me the default directory of the MAC preset folder for indesign cs2/cs3?
    (I know the PC one for CS3 is C:\Program Files\Adobe\Adobe InDesign CS3\Scripts\Scripts Panel)
    Thanks in advance.
    Joel

    You might want to ask in the InDesign forum.
    -X
    for photoshop scripting solutions of all sorts
    contact: [email protected]

Maybe you are looking for