How to delete all Action Sets in the Actions Palette

I'm in need of a piece of JavaScript code that will delete all the Action Sets in the Actions Palette. I've scripted the logic to load the appropriate Action Set once needed but I don't want to end up with duplicates at the end of processing the batch.
Any help would be most appreciated.
TIA, Scott

> Could someone clue me in; I'm lost?
getActionSets = function() {
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; // all done
} 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;

Similar Messages

  • TS4020 I live in a house with multiple iCloud users.  When they try to turn on "Find my computer"  they get the message that they will have to disable my "find my computer" setting in order to enable theirs.  How can they all be enabled at the same time?

    I live in a house with multiple iCloud users.  When they try to turn on "Find my computer"  they get the message that they will have to disable my "find my computer" setting in order to enable theirs.  How can they all be enabled at the same time?

    Try this support document for information on how to contact Apple and account security. Apple ID: Contacting Apple for help with Apple ID account security

  • How to delete all items in the HUB ?

    How to delete all items on shot in the HUB ?

    Hi all,pay attention to the words I've marked in bold in the first answer from the technical support member:  "From the BlackBerry Hub, hold your finger on the date at the top of the list. A side menu will appear. Click on the Garbage Can to delete all messages prior to that date" At first, I also didn't understand how to make it works, but you have to slide until the date is at the top of displayed messages, then you can tap and hold to select all messages preceding that date. 

  • When I try to print sth I can´t choose my printer. Adobe Reader only shows a printer I used years ago.I aleady deleted and reinstalled the Reader and deleted all other printers from the computer.How can I add a new printer to Adobe Reader?Thanks for help!

    When I try to print sth I can´t choose my printer. Adobe Reader only shows a printer I used years ago.I aleady deleted and reinstalled the Reader and deleted all other printers from the computer.How can I add a new printer to Adobe Reader?Thanks for help!

    Hi,
    I would suggest you to uninstall Adobe Reader using the cleaner tool and then re-install the latest version.
    Adobe Cleaner Tool:- Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs.
    Latest version of Adobe Reader:- http://get.adobe.com/reader/
    If you still experience the same issue, please share the following information:-
    - Screenshot of Adobe Reader showing printer options
    - Screenshot of Microsoft Word showing printer options
    - Screenshot of control panel- Control Panel\All Control Panel Items\Devices and Printers
    Regards,
    Nakul 

  • I had to change my apple ID now how do I update icloud without deleting all cloud data on the computer?

    My provider is terminating email service so I had to change my apple ID.  I did that in iTunes but now my icloud on my PC wants me to sign in under my old id, I don't see a way to update to the new ID without deleting all cloud data on the PC.  Is there another way so I don't have to resync everything from the cloud?

    Check the list in the link below, how to change all services, after you changed your Apple ID:
    What to do after you change your Apple ID email address or password - Apple Support
    https://support.apple.com/en-us/HT204071
    In particular, for iCloud:
    Update your Apple ID or password on your iPhone, iPad, iPod touch, Mac, PC, and Apple TV.
    iPhone, iPad, and iPod touch
    Go to Settings > iCloud.
    If you're signed out, enter your updated Apple ID or password. The data in iCloud will automatically appear on your device after you sign in.
    If you're still signed in with your previous Apple ID:
    Scroll down and tap Sign Out, then tap Sign Out to confirm. If you're using iOS 7 or earlier, tap Delete Account, then tap Delete to confirm. You might need to enter your password. Your data will remain in iCloud and will be updated on your device when you sign in to iCloud again.
    Enter your updated Apple ID or password.

  • HT4847 How do I delete all my information from the I-Cloud?

    How do I delete all my information from the I-Cloud?

    Greetings austinfromdellslow,
    Welcome to the Apple Support Communities!
    I understand that you would like to store your purchases movies on an external hard drive. To do this, first you will need to download your purchased content from the cloud to the iTunes library on your computer. 
    Download past purchases - Apple Support
    Once your media folder is complete with the downloaded content, you can move that iTunes media folder to your external hard drive using the information in the attached article below. 
    Move your iTunes Media folder on a Windows PC - Apple Support
    Cheers,
    Joe

  • I accidentally delete all my photo in the "all my files". How could I back up all the photo? (time machine is turn off)

    I accidentally delete all my photo in the "all my files".
    actually I delete every thing in ALL MY FILES.
    How could I back up all the photo?
    and other data, such as movies and so on?
    Do I need to go to Apple store to back up?
    (time machine is turn off)

    If you don't have a back up then you'll need to use a file recovery app like File Salvage
    To back up iPhoto you make a copy of the Library on another disk.
    Regards
    TD

  • How to delete all previous icloud data from current icloud after sighning in with the current icloud account

    so i sighned into someone elses device with the current icloud account and i sighned out. Some of the icloud data from the other device is now on mine. All i want to know is how to delete all the icloud data in my current icloud account from the other icloud account

    Hello ,
    I had the same problem and i have done everything manually.
    It's a shame that Apple doesn't put a "Reset to factory Settings" button or simply "Delete all data from iCloud.com". That way, it would be much simpler for everyone including myself.
    Winston Churchill is right unfortunately . Happy deleting !
    Kind Regards,
    Moonburn

  • How to delete all my personal messages from my iphone..... even after deleting from inbox it is available in the search iphone option that is siri

    how to delete all my personal msg from my iphone..... even after deleting it fom inbox it is available in the siri option

    As stated in your first post, restore your phone as new.

  • I would like to delete all Apps archived in the clouds of "purchased" and not in used now and in the future. How is possible to remove definitively these Apps?

    I would like to delete all Apps archived in the clouds of "purchased" and not in used now and in the future. How is possible to remove definitively these Apps. Thank you

    All you can do is hide them from your purchased list.  You cannot permaneently delete anything from your purchased history.
    Also, these are not stored in your iCloud account storage space.  The purchases reside in the online store and all you see is a list of those purchases made with your account, with a cloud-link to redownload them, but you are merely re-downloading them directly from the store.

  • I'm trying to figure out how to delete all the information off my search iphone screen

    I'm just needing to know how to delete off my stuff on the search iphone screen.. its just building up and i've never noticed it before. i dont mind my contacts being there but emails and messages and songs.. is there a way to get rid of all of this??

    Hi,
    Welcome to the    Support Communities
    It looks like you have started at the Index Page and then Come to Applications > iChat
    Mail tends to be a different version for each version of the OS.
    Therefore Questions about Mail in Snow Leopard get asked here
    You will find that if you use the "Refine the List" option just above the most recent thread title you can select the Mail Tag and it will show you a list of Topics that have been tagged with Mail.
    When you post you can also choose to add these tags as it then helps people to find them (Some of the regualr posters concentrate on specific things and there are Mail Experts out there - I know I had to ask myself the other day but in Leopard and about a different matter).
    <
    8:44 PM      Sunday; May 8, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
    , Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Mail Mac has deleted all my emails from the server..how to get them back?

    Mistakenly, I've changed the options in Mail app in Mac, which says "Remove copy from server after retrieving a massage" Immediately, and it deleted all my emails from the server. Is there anyway to return all my 3000 emails back to the server? cuz I want to access them from anywhere :S it's a hotmail account.

    You can create a new IMAP account in Apple Mail, and move all the messages to the IMAP folders. They are synced with the server.
    I don't know if hotmail supports imap though, I would prefer Gmail.

  • How to delete all ALERTS in iCal at once?

    Over the years I have added repeating Events with Alerts to iCal on various devices (some of them passed on to my relatives). As a  result I get plenty of Alert emails or sounds. I find it onerous to go through all repeating events to delete the alert. Hence my question: how to delete all Alerts at once?
    Thanks for any suggestions/pointers/ideas. Cheers, Veit

    Hi John,
    Thanks so much for your help with this problem. I am trying to remove alerts for a couple of specific shared calendars (which I can edit) but am having some difficulty due to my inexperience with applescript! I am also not sure where else to go for help solving this problem.
    My plan is to run your script a couple of times specifying one calendar at a time by name.
    This is the modification I made to your script:
    tell application "Calendar"
      activate
              delay 0.5
              display alert "Removing all alarms from your editable calendars" message "This process may take some time and is permanent. Are you sure you want to do this?" buttons {"Yes", "No"} cancel button 2
              set calname to "Consultant_on_call"
      --- repeat with myCalendar in (calendars whose writable is true)
              repeat with myCalendar in (calendars whose name is calname)
                        repeat with myEvent in events of myCalendar
      delete display alarms of myEvent
      delete mail alarms of myEvent
      delete sound alarms of myEvent
      delete open file alarms of myEvent
                        end repeat
              end repeat
              display alert "Removing all alarms from your editable calendars" message "This process is complete." buttons {"OK"} default button 1
    end tell
    Are you able to tell me what I am doing wrong? Thanks again.
    Andrew

  • How to delete all bookmarks in iCloud ?

    Hi every body, could someone tell me how to delete all my bookmarks in iCloud ?
    Thanks for attention and answer, Vincent

    Hey mzhill78
    Remove you icloud contact information on all your IOS devices, go to the icloud setting on you ios device and turn off the addressbook syncing, when it asks you "do you want to remove keep the address on your ips device you say NO...  So now your MacBook is the only thing syncing too the icloud.
    Go to Addresbook and look for the menu option find duplicates.
    After that wait for your laptop to sync this too icloud.  to check give it about 2 min depending on how many changes log into your icloud account at www.icloud.com and check too see if the syncing has updated whats in the cloud.
    If it has then urn on your addressbook syncing in iclouud settings on your IOS devices and all should be back too normal.
    Hope it helps,
    If this has sloved your problem please mark it as Solved thank you..

  • HOW TO DELETE PARTICULAR TRIPLE SET FROM Oracle SEMANTIC TABLES in 11g

    Can somebody help us how to delete a particular set of triples from Oracle(11g) semantic that we have. Because we noticed that few triple belongs to particular data sets were wrongly loaded so we need to remove only those triples.
    Usually we delete all triples including others such and reload them again along with new triples. We would like to avoid this as we go to production.
    Otherwise When we insert a set of triples belongs to a particular data set, is it possible to know what ids Oracle assigned to that set? Can we delete by id? Just a thought.
    Rgds
    Srini

    Hi,
    It is very strange. I got an email in my inbox saying that you want to find out
    IDs of triples that belong to RNAIDB data set like the following.
    "<http://www.lscdd.lilly.com.sg/lscdd/RNAIDB/...../.../:>".
    This forum does not have your message somehow.
    Assume you have asked such an question :), my answers are
    1) from a modeling perspective, it is not a very good idea to encode
    semantics in the URI lexical form itself. A URI should be treated
    as a symbol.
    2) now assume you have a valid reason for doing this, you can try something like the following.
    CREATE INDEX testdel_sub_idx ON tstdel (triple.GET_SUBJECT());
    -- You can then get the rowid out for those offending rows.
    select rowid
    from tstdel t
    where t.triple.GET_SUBJECT() like '<urn:su%'
    -- Or you can remove them directly.
    delete from tstdel t
    where t.triple.GET_SUBJECT() like '<urn:su%'
    ;

Maybe you are looking for

  • Error encountered while creating a Ratings Quick Poll

    Hello, I tried creating a Quick Poll by selecting the "Rating" option. I attached a sample .txt file I had uploaded, added a question and other details and clicked save. The system returned an error stating that the provided document could not be rat

  • OpenGL and slow down after this

    Wondering if this is intended behavior or not, but once I see this message (graphic below) PS becomes very slow even if I close all windows and then open a new photo. Only closing PS and opening it again corrects this problem. I have never noticed th

  • How to track "Date of Last user Login" across all provisioned systems ?

    We all know how hard it is to track old users - in particular ones that have left and termination paperwork has not been completed (users such as contractors, service technicians etc) Anyone think of a way where IDM could track the date/time of last

  • Why can not I call the Sysprep on the MDT Task sequence created ?

    Good afternoon gentlemen, Please help me ! I'm days trying to unravel this problem , any task that I create and call on the relevant equipment, is the right procedure for all steps and ends with the successfully completed task window, nothing happens

  • Organizational Object Types

    Is it possible to create customer defined organizational object types in CRM 2007 like you can in ECC or are you limited to object types org unit, position, holder?    I'd like to create an object type to hang cost objects on the org structure to use