Clearing the actions panel and loading an action set using a script.

I've been trying to figure out how to do this now for two days straight, I'm still completely stuck and can't manage to do it. Scriptlistener shows nothing for the "Clear actions" and "Load actions" menu items when the function is called in both CS5 and CS3 and both JS and VBS.
Does anyone here have a solution? Any scripts?
Thank you so much.

This should help...
//get a list of all actionSets
var actionList =getActionSets();
//remove all actionSets
for(var d in actionList){
unLoadAction(actionList[d]);
//Load your new actionSet
app.load(File("/c/actions/myNewAtionset.atn"));
function getActionSets() {
cTID = function(s) { return app.charIDToTypeID(s); };
  var i = 1;
  var sets = []; 
  while (true) {
    var ref = new ActionReference();
    ref.putIndex(cTID("ASet"), i);
    var desc;
    var lvl = $.level;
    $.level = 0;
    try {
      desc = executeActionGet(ref);
    } catch (e) {
      break;
    } finally {
      $.level = lvl;
    if (desc.hasKey(cTID("Nm  "))) {
      var set = {};
      set.index = i;
      set.name = desc.getString(cTID("Nm  "));
      set.toString = function() { return this.name; };
      set.count = desc.getInteger(cTID("NmbC"));
      set.actions = [];
      for (var j = 1; j <= set.count; j++) {
        var ref = new ActionReference();
        ref.putIndex(cTID('Actn'), j);
        ref.putIndex(cTID('ASet'), set.index);
        var adesc = executeActionGet(ref);
        var actName = adesc.getString(cTID('Nm  '));
        set.actions.push(actName);
      sets.push(set);
    i++;
  return sets;
function unLoadAction(aSet){
var desc = new ActionDescriptor();
var ref = new ActionReference();
ref.putName( charIDToTypeID( "ASet" ), decodeURI(aSet));
desc.putReference( charIDToTypeID( "null" ), ref );
executeAction( charIDToTypeID( "Dlt " ), desc, DialogModes.NO );

Similar Messages

  • In safari, On my Ipad2,I get the error message, "too may redirects" and the page won't load. Anyone with advice? I have cleared the cache, cookies, and history and restarted.

    In safari, on my Ipad2, I get the error message " too many redirects" and the page won't load. I have cleared the cache, cookies, and history and have rebooted and I still get the same problem. Any advice?

    In safari, on my Ipad2, I get the error message " too many redirects" and the page won't load. I have cleared the cache, cookies, and history and have rebooted and I still get the same problem. Any advice?

  • Firefox 6 will not load when I click the icon. I have tried to uninstall it, both through the control panel and geong straight to help.exe. In both cases nothing happens. How do I uninstall this program?

    Firefox 6 will not load when I click the icon. I have tried to uninstall it, both through the control panel and going straight to help.exe. In both cases nothing happens. How do I uninstall this program?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • HT1492 Hmm, I was deleting some files last night and when I came to booting up this morning my Macbookpro (5 years old) i was greeted with a user login screen? put in my password, but all i get is the space screen and no further action...? cant get apps o

    mm, I was deleting some files last night and when I came to booting up this morning my Macbookpro (5 years old) i was greeted with a user login screen? put in my password, but all i get is the space screen and no further action...? cant get apps o my bar

    Sounds like you may have deleted something you shouldn't have. Boot to an OS X DVD or a bootable backup, and using Disk Utility, do a repair disk, and while there repair permissions. Disconnect any peripherals, and reboot. If you get the same startup behavior, do a safe boot, by holding the shift key down when booting. If that works, try a normal boot. If neither step helps, you may need to relaod your operating system.

  • I have a PowerBook G4 with a non-functioning monitor.  It used to work with an external monitor, but I reinstalled the OS, which cleared the display preferences and now when I restart it won't detect the external monitor. How do I fix?

    I have a PowerBook G4 with a non-functioning monitor.  It used to work with an external monitor, but I reinstalled the OS, which cleared the display preferences and now when I restart it won't detect the external monitor. This means I can't use the computer anymore. How do I fix? I tried using the Command+F2 keyboard shortcut, but it doesnt' work.  It's possible that since I reinstalled the OS, it still needs to be set up, so there's only a welcome screen (but since I can't see it I'm not sure).

    There is no limit to the number of times you can re-install Office on the same computer.
    You can activate by telephone:
    The last paragraph is the relevant bit

  • How to clear the open items and parked items for customer

    Hi Experts,
    I need to clear the open items and parked items for customer.
    So any one could let me know the transaction code and procedure for clearing the items for customer.
    Best regards,
    Kesava balaji.

    Hello,
    Parked items will have NO RELEVANCE, unless you post it.
    You CANNOT clear parked items.
    You can clear the posted items using F.13 or F-32
    Regards,
    Ravi

  • Opening a new file in photoshopcc and the file name is displayed but no white working canvas. you can see it as a layer in the layers panel and if i draw on the grey area i can see int on the layer but not on the main screen.

    opening a new file in photoshop cc and the file name is displayed but no white working canvas. you can see it as a layer in the layers panel and if i draw on the grey area i can see int on the layer but not on the main screen.

    Graphics card is the problem.
    Trying to update drivers now.
    Thanks for your help
    john

  • Can I force the bootcamp wizard to skip looking for the bootcamp drivers?  I have already downloaded the latest drivers and loaded them on a FAT usb drive.  All I want is for bootcamp to create the partition and allow me to install windows 8 pro

    Hi Everyone,
    Can I force the bootcamp wizard to skip looking for the bootcamp drivers?  I have already downloaded the latest drivers and loaded them on a FAT usb drive.  All I want is for bootcamp to create the partition and allow me to install windows 8 pro.
    The bootcamp drivers have been downloaded from apple's website.  Filename:  BootCamp5.0.5033
    I have a iMac 27" late 2013 model.
    NOTE:  I have downloaded the drivers manually from apples support site as the bootcamp wizard fails third of the way through the download.
    Appreciate any assistance.
    Regards,
    asdutoit

    There is a missing point in this thread, and it is that the Boot Camp drivers for the Late 2013 iMac can only be downloaded from Boot Camp Assistant. The Boot Camp drivers available in the Apple site are not compatible with that iMac.
    Delete the Boot Camp drivers from the USB drive, open Boot Camp Assistant and try to download the Boot Camp drivers again. If you get a message telling you that they could not be downloaded, I would try reinstalling OS X through OS X Recovery, by holding down Command and R keys while your Mac is starting up

  • How do reduce the space between the front panel and the display area

    I am trying to reduce the space between the front panel and display area but i am not able to reduce the space

    A picture would be very helpful in demonstrating what you are having trouble with.
    Lacking that, I will guess.
    VI Properties >>> Windows Size
    lets you define the minimum size of a FP window.
    Well that's my guess!
    Did I win?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Where is the attachment panel and page option in Designer?

    In the document properties (in Acrobat), initial view tab and Navigation tab option you can select Attachments Panels and Page.
    Can this be done is Designer can not seem to find a similar option.
    Regards, John.

    I found the answer myself. Looks like this new version does not support these features anymore: http://www.adobe.com/ro/products/flash-builder/buying-guide.html.
    Strange...
    The question rising here is what happens with this feature?
    Will be available with a future update?
    Will no longer be availalble in FlashBuilder, but in another Adobe Project?
    Will never be available?
    I belive this features are not important  for advanced users... but  I'm just learning this. I'm used to work in Flash. I write ActionScript, but I'm not familliar with the objects availlable in Flex, so the Component Panel and Design Mode is quite handy on this stage.
    Plus, there is a real concern about the future of this technology, now beeing available HTML5. So, there is a question of oportunity  investing time in learning things no longer supported. The most frustrating thing is not having an answer to this question. Even a "No" is better than "We don't know yet" <- the answer I received from online support.

  • How do I tile the Dreamweaver panels and document windows to tile instead of being superimposed?

    How do I tile the Dreamweaver panels and document windows to tile instead of being superimposed?

    I'm not sure what may be causing your issue on the right side of the screen, other than possibly your application frame is wider than your screen size so you aren't able to drag the window tab far enough to get the highlighting effect. Make sure your application frame is maximized to your screen by hitting the middle button in the top right of the window so it changes to the double square icon. That way, you'll know whether the edge is off screen or not.
    Only certain windows can be brought to the top or bottom since those are reserved for toolbars and the Properties Inspector respectively.

  • I am using iphone 5s, glass got broked, where can i get the original panel and what would be price

    i am using iphone 5s, glass got broked, where can i get the original panel and what would be price

    If you are from India ,here is how you get Out of Warranty service in India
    Out-of-Warranty Service
    Please contact an iPhone Authorized Service Provider for out-of-warranty service options.

  • Filter by selecting keywords from the keyword panel, AND-rule

    Hello,
    I'd like to have an option to use the AND-rule when selecting multiple keywords from the keyword panel.
    For example, if I had the following keyword hierarchy:
    - Places
    - London
    - New York
    - Subjects
    - Car
    - Buildings
    Now, if I'd like to see cars photographed in New York, I need to go to the find panel and enter the keywords there. If I select multiple keywords from the keyword pane (ctrl-click keywrods "New York" and "Car"), I get all photos from New York and all photos of cars. What I'd like to have is a switch (check box) in the preferences-dialog (*) to chance this behavior to use the AND rule, so that selecting multiple keywords from the keyword panel would result into showing only those photos that have ALL of the keywords, instead ANY of them as it is now.
    (*): or perhaps even in the keyword panel as a sort of small icon, like the "add keyword" (plus sign) and "remove keyword" (minus sign) icons.

    I would love to see a better solution for keyword matching too. Imagine if we could have the power of regular expressions!
    At least we could use parenthesis (for grouping), ampersands (&) for "and", and plus (+) for "or." Wildcards would be nice too, and while we're at it, exclamation mark (!) for "not." Consider the following construct.
    ((dave & aileen) + (bonnie & steve)) & !pete
    Reads like this:
    Both dave and aileen, or both bonnie and steve, but in either case, not pete.
    Or you could change it like this:
    ((dave + aileen) & ! pete) + (shannon & dane)
    Reads like this: Either dave or aileen but not pete, or shannon and dane.
    For even greater power, allow us to store and edit frequent search terms. Then I could easily come up with some elaborate search term, and re-use it later, or change it in some small way for later.
    It would be even better if all this were part of a total metadata search. How about:
    (keyword:dave + keyword:aileen) & (year:2008 & location:US|California|Los Angeles|Home)
    Maybe this is getting to be too complex for casual use, but it really could be quite powerful for searching those catalogs of 10000+ pictures.

  • Where is the Components Panel and the Design Mode button in FlashBuilder 4.7 Premium?

    I'm new to FlashBuilder. I've been using many years just Flash  and now I'm switching to FlashBuilder. I've seen some tutorials, but the Interface in my copy of the program do not match the one in the tutorials. I could't find the componets Panel and the Design Mode button. Any ideea why?
    My Laptop runs on Windows 7.  FlashBuilder 4.7 Premium is via Creative Cloud:
    SnapShot from Tutorials I've seen
    SnapShot From my application
    with yelow i've marked the place with the "Components View" and the "Design" mode button
    whith that red line I've marked the place where the "Design" mode button is expected
    I've notice the following menu:
    Whe you click on Views: Window->Show Views->Other...  an interactive dialog appears with the tree of views available. Above there is a textField where you can enter a filter. As you type the text, the tree updates accordingly, after each letter.
    I've searched for the Components panel ... surprise!!!
    nothing on filter
    filtering for Outline View
    filtering for Component View
    the tree complete
    the tree finds the Outline View
    the tree is already empty
    As you notice the list of views is empty even before I finish the spelling of the word "Component".
    Is there something I should configure, or this feature is not available in this particular distribution ?

    I found the answer myself. Looks like this new version does not support these features anymore: http://www.adobe.com/ro/products/flash-builder/buying-guide.html.
    Strange...
    The question rising here is what happens with this feature?
    Will be available with a future update?
    Will no longer be availalble in FlashBuilder, but in another Adobe Project?
    Will never be available?
    I belive this features are not important  for advanced users... but  I'm just learning this. I'm used to work in Flash. I write ActionScript, but I'm not familliar with the objects availlable in Flex, so the Component Panel and Design Mode is quite handy on this stage.
    Plus, there is a real concern about the future of this technology, now beeing available HTML5. So, there is a question of oportunity  investing time in learning things no longer supported. The most frustrating thing is not having an answer to this question. Even a "No" is better than "We don't know yet" <- the answer I received from online support.

  • HT4759 I am trying to set up icloud on my pc. I open the control panel and it keeps asking me to sign in and doesn't give me any other options but that.

    I am trying to set up icloud on my pc. I open up the control panel and it keeps asking me to sign in and doesn't give me any options but that. What could be the issue?

    To use iCloud, you must first set it up on an iOS device or a Mac.
    Creating an iCloud account FAQ:
    http://support.apple.com/kb/HT4436

Maybe you are looking for