Tool Presets: how to delete or overwrite?

I'm trying to delete a Tool Preset by name.  The usage would be something like this:
deleteToolPreset("favTool1");
saveToolPreset("favTool1");
It seems easy and obvious but its not working for me:
function deleteToolPreset(toolPresetName)
    var idDlt = charIDToTypeID( "Dlt " );
    var desc = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var ref = new ActionReference();
        var idtoolPreset = stringIDToTypeID( "toolPreset" );
        ref.putName( idtoolPreset, toolPresetName );
    desc.putReference( idnull, ref );
    executeAction( idDlt, desc, DialogModes.NO );
Photoshop doesn't seem to let you overwrite an existing preset.  You have to delete it first and it seems the only way to delete it is to first select it and then delete it.  By selecting the tool preset you want to delete, you lose the tools settings that you wanted to save in the first place.  A vicious cycle.
Any help would be sooo much appreciated.
-alex

Photoshop doesn't seem to let you overwrite an existing preset. 
But xtools does:
//@show include
//@includepath "/c/Program Files/Adobe/xtools;/Developer/xtools"
//@include "xlib/stdlib.js"
//@include "xlib/PresetsManager.jsx"
var toolsMgr = PresetsManager.getManager(PresetType.TOOL_PRESETS);
toosMgr.renameElement(oldName, newName);
-X

Similar Messages

  • How to delete or overwrite .csv file

    hi...
    i need some help here..can anyone teach me how to delete or overwrite an existing .csv file.?..in my .csv file there will be two columns which is column 1( 8 length) and 2 column ( 4 length).
    please...i need the answer asap..really appreacite your help..thanks...

    Well, deleting or overwriting a file should not depend on the size of the columns. You just overwrite the file with the new data. What have you tried so far?
    If you want to overwrite individual data points, you would read the file, modify the data in memory, and overwrite the file with the changed data. Overwiting individual values directly is only recommended for binary files unless you can guarantee that each value occupies a fixed number of characters and the offset can be calculated from first principles.
    LabVIEW Champion . Do more with less code and in less time .

  • ACR-Presets- how to delete all presets

    I have accumulated too many presets. I want to delete all and start over. How to delete all?

    On the flyout menu, choose Load Settings, delete from the file explorer dialog (windows).
    Richard Southworth

  • How to delete TOOL PRESETS ?

    Hi all, I find the TOOL PRESETS not useful for me at the moment and I want to permanently hide it or delete it, please teach me how to do it?
    What I did (but fail) was:
    1. >  WINDOW  >  TOOL PRESETS
    2. in the TOOL PRESETS box, I click the top right corner, I select PRESET MANAGER and then I select all the tools and click DELETE and DONE
    3. I restart my IMAC
    4. TOOL PRESETS come back again
    Thanks

    Ok, I tried this with Contours. It's a compromise.
    Click on the first tool, Shift-click on on the next to last tool to select all but the last one.
    Click on the Delete button to remove all but one tool.
    Then in the menu under the little cog, click on Reset Tools. The dialog asks if you want to save that last tool.
    You give it a name like "one tool" and it is saved. The Default Tools come back because it is a reset.
    Then go back to that cog and choose Replace Tools, and select "One Tool".  So only that one tool will be back. You won't have a panel of Tools you do not want.
    Best I can think of at the moment. Messing with the underpinnings of this software is beyond my skills.

  • How to delete a customization from a form - To import a managemt pack from the Authoring Tool

    I am having issues importing a management pack created in the authoring tool. How do I delete a customization from a form since only one can be present? Is there documentation on this?

    If the MP defining the first custom form doesn't contain anything else you need (such as class extensions) delete the first MP. If it contains other stuff you need, delete the form from the Authoring Tool, increase the version the by 1, seal and import.
    Then import your 2nd MP containing your new form.
    Rob Ford scsmnz.net
    Cireson www.cireson.com
    For a free SCSM 2012 Notify Analyst app click
    here

  • How to fill Tool Preset picker?

    When I select Custom Shape Tool, the Tool Preset picker on the upper right is empty despite the fact that there are a few dozen Custom Shapes loaded as can be seen in the Preset Manager. But how do I get those loaded shapes to appear in the picker?
    If I go to the Tool Preset pickers' flyout and select Load Tool Presets and navigate to .csh shape files, they appear light gray, ie, they cannot be opened/loaded.
    With no shapes in the picker, I know of no way to access the Custom Shapes that are loaded as seen in Preset Manager.
    Any help appreciated!

    Thanks!
    Btw, what's "my manual"? The box CS5 came in contained no manual. When I select Ps from Applications, it lists a number of folders and a Read Me pdf file, but no manual. I'm sure that's a totally stupid quesiton, but then that's my kinds quesiton!

  • How to delete a document preset

    I created many document presets whilst opening a new document, but I can't figure out how to delete them, nor can I find the folder in the preset folder.
    I know it's something simple but just can't get it done.
    I'm on a windows 7 64 bit if it makes a diff.
    Thanks in advance.

    There are two different set of presets. Since you mentioned the presets that you made yourself when opening new documents, please follow the instructions below:
    Go to File > New
    This opens the new document dialog box. Click on the Preset tab, as shown below.
    Within the new document presets, I select a preset I had made earlier, but now I do not need.
    Now with that custom preset selected, I can now press "Delete Preset", as shown below.
    Selecting "Yes" allows for the deletion.
    Now, there are also Presets that Photoshop itself has, and you can also delete those.
    Go to Edit > Presets > Preset Manager
    This opens up the preset manager and you can select the preset type to find the preset you want to delete.
    By pressing "Delete" you can delete presets.
    I hope this helped to answer your question. Please post back with any further questions.
    Janelle

  • No tool presets defined for current tool ... how can i fix this ?

    no tool presets defined for current tool ... how can i fix this ?

    I don't have any presets for the rectangular marquee tool either...but if you have saved some you can load them using the right hand flyout menu.
    Where I have made presets they all appear in the drop down list.
    Sorry, I don't know about Mini Bridge. I don't use Bridge.

  • How to save tool presets as brush presets?

    I have some tool presets that would be very useful, but I normally just go to brush presets, which i have organized and which provide greater flexibility. Is there a way to turn "tool" into a "brush"? Going through defining brush presets, forced me to adjust all kind of things, but as tool presets they are already perfect. There has to be a way to do it easier! Hope you can help.

    gener7 wrote:
    Btw, just heard LinkIn just brought Lynda.com. Hope it doesn't become a train wreck under the new management.
    Gene
    I'll ad a giant AOL 'Me Too' to that Gene.  I don't blame Lynda and Bruce when there is $1.5b on the table, but I think it a sad reflection on our times that a dot.com that has questionable worth to our society, can afford to pay so much money for a genuinely useful service like Lynda.com.  Apparently they started with $20k and have built it up with no outside help, so they are sitting pretty right now.
    My concern is that the focus of Lynda.com does not shift even remotely towards business type courses, and away from creative.  BTW  I am absolutely loving my Lynda subscription.  It seems that no matter what the subject, if you ever get stuck on something, there is a world class course to put you straight. As regards Photoshop, I considered myself at least an expert, yet I have been able to find game changing new tips on almost a daily basis.  Or sometimes just a better way of doing things.  It absolutely helps to go into the expert courses with a good working knowledge, because it means you pick up the content straight away, and hopefully remember it. 
    Somebody was smiling down on me the day I was about to commit $250 for a year's subscription, and literally as I sat down at the computer, there was a ping to tell me a new email had arrived, and it turned out to be offering that same subscription for $150.  I suspect the apparent coincidence was driven by my recent visits to the site, but if that email had arrived ten minutes latter, I'd have been down a $100.  :-)

  • How is image resampled when using Crop Tool Presets?

    If I use the Crop Tool preset of 4 X 6 inches on a 8 X 10 inch image of the same resolution, what type of interpolation does PS use to reduce the image size? I am reducing the size of a finished multilayered file to insert it into a greeting card template.
    I know that when using the Image Size dialogue, you can choose whatever type of image interpolation you want, like bicubic sharper for reducing the size of an image. Can you do the same with the Crop Tool? Thanks.

    chris -
    could this be included in the option bar to change the resampling per instance instead of a prefs setting?  I set up some actions to change the prefs for up and down scaling and then revert to the default pref setting. But it was never convenient so I don't use the actions.
    or maybe just and pref to use "smart scaling" that chooses the interpolation method based upon whether it is up or down scaling.
    j

  • How to delete/reset Photoshop preferences

    Background: Sometimes Photoshop can exhibit odd/erratic/weird behaviour.
    The first step is to make sure that you are running the latest version of Photoshop, by applying the relevant updates for your version of Photoshop listed on this page:
    http://www.adobe.com/support/downloads/product.jsp?product=39&platform=Windows
    This behaviour can sometimes be overcome by resetting the Photoshop Preference file, or individual Tool Preferences.
    The procedures outlined below are the most common methods of removing the program preferences file.
    Q: I am experiencing weird behaviour in Photoshop. - How do I delete / reset my preferences?
    Photoshop versions after 6.0 (including 7.0, CS, CS2 ...CS6):
    A:If a tool is behaving erratically, first try resetting just that tools preferences, via the method outlined by Len Hewitt in the post below this one. 
    If you have larger troubles, hold down Alt, Ctrl, and Shift keys (Mac: Command, Option, Shift) while starting up Photoshop. A dialog box will appear asking if you wish to delete the preferences/settings file. 
    A2: You can also simply search your hard drive for a *.psp file and delete it. It will be called something along the lines of "Adobe Photoshop X Prefs.psp".
    Under Vista or 7, look here:
    Users/[Username]/AppData/Roaming/Adobe/Adobe Photoshop [version #]/Adobe Photoshop [version #] Settings
    Under Win 2k/XP the preference file will be found at:
    %windir%\Documents and Settings\[username]\Application Data\Adobe\Photoshop\[version #]\Adobe Photoshop [version #] Settings
    [NOTE: You need to set Window's Explorer Options to "View Hidden Files and Folders" to display the Preference file]
    Photoshop Versions 5.5 and earlier:
    Search for photos*.ini and delete (the file will be called photos followed by the version number - i.e photos55.ini for Photoshop 5.5, photos40.ini for Photoshop 4.0)
    Resetting the preferences will restore Photoshop settings to factory defaults.
    If removing the preferences files does not resolve the problem you should check the Photoshop Support pages for further guidance.
    http://www.adobe.com/support/products/photoshop.html
    Note that it is possible to keep a 'healthy' copy of the Preferences file, so that you simply overwrite the preferences file if needed. That way you won´t have to re-adjust your preferences in Photoshop after a Reset.
    More information on Photoshop preferences can be found at:
    Tech doc, CS5:
    http://kb2.adobe.com/cps/828/cpsid_82893.html
    Tech doc, CS4:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb405012&sliceId=2
    Tech doc, CS3:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb401600&sliceId=1
    Doc on manually removing Bridge preferences and cache:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=332992&sliceId=1

    Is one of your tools behaving strangely — or not the way you expect — in Photoshop?
    For every tool in Photoshop's Tool Box, the user may choose to fully reset JUST that tool to its default settings. To do this, look up to the Options Bar. On the far left side you will see a button which displays an icon of the currently selected tool. This is the Tool Preset picker. Right-click on this button, and you will see two entries:
    Reset Tool
    Reset All Tools
    The first thing to try when a tool is not acting like you expect it should is to apply the command "Reset Tool" from this menu. Often this will cure a problem, and by starting your Photoshop troubleshooting with this procedure you aren't resetting Photoshop's entire behavior and environment to factory default in a wholesale manner. Instead, you're just getting that particular tool back to its default settings, leaving the rest of Photoshop's settings alone.
    The second option would be more appropriate in a classroom setting, to get a "fresh version of Photoshop", rather than for troubleshooting Photoshop issues.
    If this doesn't cure the problem you're having, then you may need to move on to deleting/resetting all of your Photoshop preferences to factory default.

  • How to delete file systems from a Live Upgrade environment

    How to delete non-critical file systems from a Live Upgrade boot environment?
    Here is the situation.
    I have a Sol 10 upd 3 machine with 3 disks which I intend to upgrade to Sol 10 upd 6.
    Current layout
    Disk 0: 16 GB:
    /dev/dsk/c0t0d0s0 1.9G /
    /dev/dsk/c0t0d0s1 692M /usr/openwin
    /dev/dsk/c0t0d0s3 7.7G /var
    /dev/dsk/c0t0d0s4 3.9G swap
    /dev/dsk/c0t0d0s5 2.5G /tmp
    Disk 1: 16 GB:
    /dev/dsk/c0t1d0s0 7.7G /usr
    /dev/dsk/c0t1d0s1 1.8G /opt
    /dev/dsk/c0t1d0s3 3.2G /data1
    /dev/dsk/c0t1d0s4 3.9G /data2
    Disk 2: 33 GB:
    /dev/dsk/c0t2d0s0 33G /data3
    The data file systems are not in use right now, and I was thinking of
    partitioning the data3 into 2 or 3 file systems and then creating
    a new BE.
    However, the system already has a BE (named s10) and that BE lists
    all of the filesystems, incl the data ones.
    # lufslist -n 's10'
    boot environment name: s10
    This boot environment is currently active.
    This boot environment will be active on next system boot.
    Filesystem fstype device size Mounted on Mount Options
    /dev/dsk/c0t0d0s4 swap 4201703424 - -
    /dev/dsk/c0t0d0s0 ufs 2098059264 / -
    /dev/dsk/c0t1d0s0 ufs 8390375424 /usr -
    /dev/dsk/c0t0d0s3 ufs 8390375424 /var -
    /dev/dsk/c0t1d0s3 ufs 3505453056 /data1 -
    /dev/dsk/c0t1d0s1 ufs 1997531136 /opt -
    /dev/dsk/c0t1d0s4 ufs 4294785024 /data2 -
    /dev/dsk/c0t2d0s0 ufs 36507484160 /data3 -
    /dev/dsk/c0t0d0s5 ufs 2727290880 /tmp -
    /dev/dsk/c0t0d0s1 ufs 770715648 /usr/openwin -
    I browsed the Solaris 10 Installation Guide and the man pages
    for the lu commands, but can not find how to remove the data
    file systems from the BE.
    How do I do a live upgrade on this system?
    Thanks for your help.

    Thanks for the tips.
    I commented out the entries in /etc/vfstab, also had to remove the files /etc/lutab and /etc/lu/ICF.1
    and then could create the Boot Environment from scratch.
    I was also able to create another boot environment and copied into it,
    but now I'm facing a different problem, error when trying to upgrade.
    # lustatus
    Boot Environment           Is       Active Active    Can    Copy     
    Name                       Complete Now    On Reboot Delete Status   
    s10                        yes      yes    yes       no     -        
    s10u6                      yes      no     no        yes    -        Now, I have the Solaris 10 Update 6 DVD image on another machine
    which shares out the directory. I mounted it on this machine,
    did a lofiadm and mounted that at /cdrom.
    # ls -CF /cdrom /cdrom/boot /cdrom/platform
    /cdrom:
    Copyright                     boot/
    JDS-THIRDPARTYLICENSEREADME   installer*
    License/                      platform/
    Solaris_10/
    /cdrom/boot:
    hsfs.bootblock   sparc.miniroot
    /cdrom/platform:
    sun4u/   sun4us/  sun4v/Now I did luupgrade and I get this error:
    # luupgrade -u -n s10u6 -s /cdrom    
    ERROR: The media miniroot archive does not exist </cdrom/boot/x86.miniroot>.
    ERROR: Cannot unmount miniroot at </cdrom/Solaris_10/Tools/Boot>.I find it strange that this sparc machine is complaining about x86.miniroot.
    BTW, the machine on which the DVD image is happens to be x86 running Sol 10.
    I thought that wouldn't matter, as it is just NFS sharing a directory which has a DVD image.
    What am I doing wrong?
    Thanks.

  • How to delete the duplicate email address in BP master data

    Hi,
    When  you get an email ids from the third party vendor and you are loading into CRM BP master data.  how to delete the duplicate email address already exits in the system.  In CRM you can create the same BP with different id.   I would like to know how to delete the email address during importing email addresses from the third party tool.
    During the campaign you are sending email to all your customers, when the customer want to unsubscibe the email address from your list, how to unsubcribe the email address and how to updat the BP master data. 
    If you are sending the email to customer, you are using html or simple text, if the customer wants only html or simple text, how you to specify in the system?
    thanks,
    arul

    Hello Arul,
    welcome to the SDN CRM Development forum.
    1. I think you should clear the data with duplicate E-Mail adresses in the external tool.
    2. Unsubscription could be done by a Marketing Attribute which could be set by using a Target Group which is created by Campaign Automation. Have a look at this Toppic. There is also a Best Practice avaliable at http://help.sap.com/bp_crmv340/CRM_DE/index.htm.
    3. Also HTML or Simple text can be mained in a Marketing Attribute. You have to use different Mail Forms to which are sent to different Target groups.
    Regards
    Gregor

  • How To Delete All Colors In a Swatch Palette?

    If I wanted to create a new swatch palette without the preset colors being there, how can I delete all the swatches at once. I know how to delete each color individually but, is there a way to clear the palette?
    TIA
    knightball

    I believe you can do it in the Presets Manager.

  • How to delete all objects in a package?

    Hello,
    I've seen a similar question here. But is there a tool or a smart way to delete all objects in a dev class or a transport request?
    Best Regards
    Volker

    These are really 3 questions??
    1. To delete objects in a request there are a number of ways, here is one:
    Position cursor on modifiable request.
    Double click on request and choose 'Objects' tab
    Choose object line you want to delete and click 'Delete'
    Save your changes.
    2. To delete objects in a Dev Class:
    Go to work bench --> edit object, Class and give your class name, you will see delete option at the bottom of the screen.
    3. How to delete all objects in a package:
    here is a link with the steps you need for this: http://benxbrain.com/en/index.do?onInputProcessing(brai_object_thread)&001_threadid=0000161442&sysid=WP5&pgmid=R3TR&object=DOMA&obj_name=DEVCLASS&child_param=

Maybe you are looking for

  • How to get Flex to communicate with a Java applet?

    We are building a Flex 2.0 app which needs to talk to a Java applet. The applet lives in the same HTML page as the Flex app. My guess is that we can use the Flex-Ajax bridge combined with some Javascript-java bridge. Any suggestions on specific libra

  • Why does the Phone Version appear as desktop version when it is online

    I designed a website in Adobe Muse. I also did a Phone Layout. Now the site is online. On the phone the site opens in the phone Layout but after using the navigation the site changes to the desktop version, which is not readable on the phone. What ca

  • CS6 Konnte ein Arbeitsvolume nicht öffnen, ....

    Hallo Windows 8.0 64Bit Mehrere Volume verfügbar alle schreibbar. Externe Festplatten und USB Memory Steckers entfernt DISKPART> List volume   Volume ###  Ltr  Label        Fs     Type        Size     Status     Info   Volume 0     L                 

  • [solved] Opera & Sublime Text have graphic errors after system upgrade

    Hi all, I hope this was not already answered, but I couldn't find anything in the wiki or the forums. Since a pacman -Syu yesterday, Opera (from official repo) and Sublime Text (from the AUR) have some weird graphical glitches: Opera: http://i.imgur.

  • Backing up email from Mac Mail

    I'm running 10.9.3 and use Mac Mail to connect to an Exchange email account (Office 365). I want to back up all my mail and have been playing with the Export Mailbox feature. I have a few questions: Is there any way to back up more than one folder at