Script filter maximum with options

Hello,
I use in my script the maximum filter. When I use the filter direct in Photoshop have I two Options "Radius" and "Erhalten".
I my script use I follow code:
var Start =prompt("Stärke des Lichtpunkt in ganzen Zahlen (empfohlen 1 oder 2)","1","Input Layer Name");
docRef.activeLayer.applyMaximum(Start)
I missing here the Option "Erhalten". Is that in the script not possible or use I the wrong command?
Thank you
Kenny

Look like Adone DOM only supports radius:
applyMaximum(radius) number [1..100] Applies the Maximum filter within the specified radius (in pixels).
the Maximun UI in CC 2014 look likes this:
The Scriptlistener Plug-in records this code for the two usage of the filter Squareness and Roundness options used.  So you may do better  using action manager code or do action that has an interactive maximum step and open the UI.
// =======================================================
var idMxm = charIDToTypeID( "Mxm " );
    var desc3 = new ActionDescriptor();
    var idRds = charIDToTypeID( "Rds " );
    var idPxl = charIDToTypeID( "#Pxl" );
    desc3.putUnitDouble( idRds, idPxl, 159.000000 );
    var idpreserveShape = stringIDToTypeID( "preserveShape" );
    var idpreserveShape = stringIDToTypeID( "preserveShape" );
    var idRndn = charIDToTypeID( "Rndn" );
    desc3.putEnumerated( idpreserveShape, idpreserveShape, idRndn );
executeAction( idMxm, desc3, DialogModes.NO );
// =======================================================
var idMxm = charIDToTypeID( "Mxm " );
    var desc4 = new ActionDescriptor();
    var idRds = charIDToTypeID( "Rds " );
    var idPxl = charIDToTypeID( "#Pxl" );
    desc4.putUnitDouble( idRds, idPxl, 14.000000 );
    var idpreserveShape = stringIDToTypeID( "preserveShape" );
    var idpreserveShape = stringIDToTypeID( "preserveShape" );
    var idsquareness = stringIDToTypeID( "squareness" );
    desc4.putEnumerated( idpreserveShape, idpreserveShape, idsquareness );
executeAction( idMxm, desc4, DialogModes.NO );
This script would open the Maximim Dialog
#target photoshop
cTID = function(s) { return app.charIDToTypeID(s); };
sTID = function(s) { return app.stringIDToTypeID(s); };
function Maximum() {
    var dialogMode = DialogModes.ALL ;
    executeAction(cTID('Mxm '), undefined, dialogMode);
Maximum();

Similar Messages

  • Do we can use Inter-as vpnv4/6 multipath with Option C ?

    Hello,
    I'm configuring the inter-as vpn with multipath. Reading documentation I understood the only method to do it is to change configuration on ASBR disabling rt-filter and set maximum path under vpnv4. So if I correctly understood we can use multipath only with option B inter-as.
    Correct ?
    Do you know if this is possible using option C (eBGP w RR)?
    Thanks
    Isacco

    Hi Issaco,
    Just few days ago I have tested option-B and option-C on GNS. I am attaching that document here which might be useful to you.
    Hope this helps.
    Regards # Mahesh

  • Hierarchy on HANA Calculation View with Optional Input Parameters Fails

    Hi,
    Has anyone succeeded in building a hierarchy on top of a calculation view with optional input parameters, where an input parameter is not filled?
    The original requirement came from the wish to create a parent child hierarchy on a calculation view that was copied into the customer space from a HANA Live Financial Statement query view, but I have found the following when creating a simple level hierarchy on a calculation view that consumes one table. The Calculation View has one Input Parameter where the 'mandatory' box is unchecked.
    Calculation view reads ECC table FAGLFLEXT
    Simple level based hierarchy on fields PRCTR, RACCT and SEGMENT
    Input parameter is used as a filter for PRCTR with logic ("EMPTY" = '$$P_PROFITCTR$$' or "PRCTR" = '$$P_PROFITCTR$$')
    When I run the view I see the following behaviour in HANA Studio and Analysis for Excel
    Before building the hierarchy I could run the view with or without the Input Parameter
    After building the hierarchy I can run the view with the Input Parameter filled, but it fails when the Input Parameter is not filled.
    Error message is "error: search table error:  [2426] missing placeholder; missing value for mandatory parameter P_PROFITCTR"
    P_PROFITCTR is not a mandatory parameter, but the selection for the hierarchy view thinks it should be. I don't find any notes around this issue, so I don't think it's version related, however the version I have used for this test is 1.00.70.
    It's a shame we can't currently build the hierarchy as the parent child relationship is provided in HANA Live view NewGLFinancialStatementQuery.
    Thanks,
    Ken

    Hi Ken,
    We have been facing similar issue. We have even tried to set default value and as optional parameter. View still fails to create hierarchy (we are not using HANA live). As mentioned on page 97 of HANA modelling guide input parameter is mandatory from engine point of view. Hierarchy is generated as column view during the initial activation of calculation view and therefore expect a value by caller.
    This seems to be a product error. Some one from HANA development team should explain this issue in detail. I would expect someone like Thomas Jung reply to us.
    At the moment, we cant use input parameter for date prompt which gives us calendar popup feature for date selection. Hierarchies just don't work with input parameter. We are missing something.
    Regards
    Angad

  • Help getting a Photoshop CS4 script to work with PS CS5?

    I don't know AppleScript, but have a script for Photoshop CS4 that saves to the currently open image as a .png file on the desktop
    try
    tell application "Adobe Photoshop CS4"
    activate
    --get the current document name
    set myDoc to the current document
    set currentName to name of myDoc
    --remove .psd extension
    set docBaseName to (items 1 thru ((length of currentName) - 4) of currentName) as string
    --write the temporary file
    set theFile to "~/Desktop/" & docBaseName & ".png"
    --save the temp document
    save myDoc in theFile as PNG with options {class:PNG save options} appending lowercase extension with copying
    end tell
    end try
    Now that Photoshop CS5 is out I tried changing the script above from
    +tell application "Adobe Photoshop CS5"+
    to
    +tell application "Adobe Photoshop CS5"+
    But this doesn't work. Is there any way of changing it to get it to work with Photoshop CS5?

    Not able to help but I have seen problems posted with CS5 & AppleScript already at Adobe's forums…
    See link:
    http://forums.adobe.com/thread/632681?tstart=0

  • Export to PDF with Options

    Hi,
    I would like to export the active document to PDF with options [Standard options] using vbscript.
    Is there any sample or references for this?
    Thanks,
    Shailesh

    A quick copy to help you getting started.
    myInDesign.ActiveDocument.Export "Adobe PDF", TargetPDFfilepath, False, IDPDFPresetName
    The command can be found in VB reference guide (and scripting guide I believe)

  • @prompt syntax error with Optional

    Hi Everyone,
    My first post here, hope you guys can help me out. I have some predeifned conditions on a UDT universe which does not parse but works fine. However, In IDT i am making the same but unable. As I have seen so far with the .UNX universe any predefined conditions which does not parse on IDT does not work on the report as well unlike UNV universe. So here is my issue:
    This does not parse on .UNV but works fine on the report:
    convert(varchar, Vw_Ln_Umb.rim_no)  =  @Prompt('Customer No:','A','Limit Details\Customer No.',Mono,Free,Not_Persistent,{'ALL',}) OR 'ALL' =
    @variable('Customer No:')
    I have corrected the mistake of the 7th parameter which is the default value as follows:
    convert(varchar, Vw_Ln_Umb.rim_no) = @Prompt('Customer No:','A','Limit Details\Customer No.',Mono,Free,Not_Persistent,{'ALL'})
    OR 'ALL' =  @variable('Customer No:')
    and i get the following error : Incorrect syntax near the keyword 'OR'.
    When I remove the "OR 'ALL' =  @variable('Customer No:')"
    I get the error: Incorrect syntax near ')'.
    So i have to correct the filter condition as
    convert(varchar, Vw_Ln_Umb.rim_no) = @Prompt('Customer No:','A','Limit Details\Customer No.',Mono,Free,Not_Persistent)
    but this does not allow me to have ALL as the default value which inturn acts as an optional prompt at report level.
    Kindly help me either fix this or create pre-defined conditions with optional prompts.
    Mahee

    Hi mahee,
    Apply this filter condition
    if you want to select single value in report use "Mono"
    Vw_Ln_Umb.rim_no = @Prompt('Customer No:','N','Limit Details\Customer No.',Mono,Free,Not_Persistent)
    if you want to select multiple value in report use "Multi"
    Vw_Ln_Umb.rim_no IN @Prompt('Customer No:','N','Limit Details\Customer No.',Multi,Free,Not_Persistent)
    Remove extra comma in your filter condition.
    Regards
    Mustafa

  • [JS][CS5] How can use 'edit with' option for link using sripting

    Hi All,
    I Can edit link using Link.editOriginal () if the default application is as i need it will open it from there, when I try to open it with other application instead of default application of link file I can't (usually we "use edit" with option in manually). Is there any option to do it in scripting.
    Any clue will help us to update the large set of links in a single click.
    Thanks in advance,
    Sankar L

    Hi csm_phil,
    You are exactly catch my point, my requirement is to update math type eps file. If my math type equation default application file is illustrator (say) as below
    it will open in illustrator instead of mathtype if i use editOriginal function...
    Jus i need to open it in mathtype, the link file default application file is whatever it is.
    Thanks,
    Sankar L

  • Mozilla should always give open with option while downloading any file

    in Mozilla, when i click on the file to download the dialog box comes with the options of either opening it or saving it. say i get open with option when i click it, if i toggle to save it and go ahead with that process. Mozilla is remembering the last event, and showing me save it option selected when i click on download that file. i would want to set the mozilla config to have open with option selected for any kind of download in my browser. how to do this?

    yes this is a way to keep giving me "open with" option for that type of the file. but still if user clicks save option. next time it will show save option clicked while downloading. am not sure if i have put the query correctly. is the problem statement clear?
    the reason i want this is because my script which is automated script for an application, when download is clicked i want the open option to be enabled so that i just do a key down option. if it is going to be different everytime. i cant use this script.

  • BSP email with option (YES/NO) or (ACCEPT/REJECT)

    Is it possible to send email from BSP with option for YES OR NO.
    I have to send a mail to employee for confirmation i.e YES/NO and want to read the confirmation too.
    Can someone help me out it that.

    Hi Manisha,
    As mentioned by me above,here the form is a attachment and the user is required to download to fill it and click yes/no button. Here is some sample code which sends a form to be filled by user and as he clicks on submit, the mail is sent back to me.
    You just modify the code to have click buttons for yes and no and use the code.
    <html>
    <head>
    <title>Enter the title of your HTML document here</title>
    </head>
    <body>
    <form name="input_form"><pre>
    Name: <input name="username" type="text">
    Comment: <input name="comment" type="text">
    </pre></form>
    <script>
    function update_message_body ()
    var username = document . input_form . username . value;
    var comment = document . input_form . comment . value;
    var txt="<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"
    txt=txt+"<candidate_details>\n"
    txt=txt+"<name>" + username + "</name>\n"
    txt=txt+"<comment>" + comment + "</comment>\n"
    txt=txt+"</candidate_details>\n";
    document . proxy_form . message_body . value = txt;
    return true;
    </script>
    <form name ="proxy_form"
    method ="post"
    enctype ="multipart/form-data"
    action ="mailto:[email protected]?subject=Form Data"
    onSubmit="return update_message_body ();">
    <input type=hidden name="message_body">
    <input type=submit value="send mail">
    </form>
    </body>
    </html>
    You need to move all this code to an internal table. Attach it to mail and send mail.
    Hope this will help you.
    Regards,
    Pragya

  • In BI how to filter the selection options based on inputs on top field

    Hi Friends,
    In BI, How to filter the selection options based on inputs on top field.
    The system should automatically filter the lower level drop downs based on the selection of a higher level.
    For e.g. :
    If a user selects a Country then the States drop down should only display the State's belongs to the Country. Similarly when a State is selected, the District drop down should display only those District's belongs to the State.
    Thanks in Advance.
    Regards
    Jayaram M

    Hi Anil,
    Thanks for reply but I couldn't use Compounding Characteristic here. Need some other solution.
    Regards
    Jayaram M

  • I installed elements 12, it won't open, a screen pops up with options for e-12 and 4 other language

    I installed elements 12, it won't open, a screen pops up with options for e-12 and 4 other languages.  When I click Elements 12 a screen pops up with a red install icon, I click it and it askes for the serial number. It won't let me type in letters only numbers. I already did the serial number once. How do I get this to work? I don't want to be a programer!  

    attach a screenshot of what pops up after clicking pse 12, http://forums.adobe.com/thread/963429

  • The "always open with-"  option doesn't work!

    Is there a way to get the "Always open with" option when doing a (control) (option) click on a file to actually ALWAYS open with the application I choose? Could this feature be broken or perhaps mislabeled?
    Here's what happens; I'll set a file to "always open with" one application. I work on that file and save it. The next time I try to open that file it opens with the snow leopard default application instead of using the application I directed it to "Always open with".
    I don't want to open every file type with this application so I'm not setting "apply to all" in the info window/ inspector, I simply want this one file to always open with the application I've selected.
    I'm hoping some of you super mac users will know a trick to make this work.

    I want to open a few select files with a non-default application (now that the creation code is not used.)...If I work on the file and make/save any changes, it reverts to the default app.
    Aha! Okay, I don't think any of us were getting that in the initial posts. You are correct. Snow Leopard no longer uses Type and Creator codes by default, but they are still there. Various things are keeping you from doing what you want.
    1) Newer programs that do not use Type and Creator codes at all still need a way to tell the OS what files belong to them. Since at least back as far as Leopard (likely earlier), the system now uses Uniform Type Identifiers. As far as keeping track of what files belong to what applications, they serve the same purpose as Type and Creator codes. So when you save changes, it will indeed revert back to the default app since the file once again gets saved with that program's UTI data.
    2) Some programs use both UTI and Type and Creator codes. Usually older apps that have come from PPC code. I would guess that would be either because the developer doesn't want to waste time removing the code that adds the Type and Creator codes to the files, or more likely, to make sure files passed to other users still on older Macs that don't use UTI won't have trouble opening them.
    3) I use some much older apps which have still not been rewritten at all for Intel Macs and are still all PPC code. They still write Type and Creator codes.

  • VMWARE Server2012RT Installation failed with option: I will install the Operating System later

    Hello, first sorry for my englich but I hope it wille ok for this Issue.
    I have instelled the Win2012RT Server in VMware but the Installtion failed with this error:
    Ok i chose the option: "I will install the Operating System later.",
    and also tried
    this:
    http://www.techieshelp.com/server-2012-windows-cannot-read-the-setting-from-the-unattend-answer-file/ 
    However, I always get
    this displayed:
    Last Log entry is this one:
    2014-05-07T09:42:03.962+02:00| vmplayer| I120: VMMgr: Finished opening VM at /vm/#cf2324dcf779001d/ from G:\VMs\Server2012RTVmware.vmx
    2014-05-07T09:42:03.962+02:00| vmplayer| I120: cui::MKSScreenWindowCoordinator::HandleGuestTopologyChange: main UI rect: 687x619 @ 948,249
    2014-05-07T09:42:03.962+02:00| vmplayer| I120: cui::MKSScreenWindowCoordinator::HandleGuestTopologyChange: Found 0 present screens
    2014-05-07T09:42:03.962+02:00| vmplayer| I120: cui::MKSScreenWindowCoordinator::HandleGuestTopologyChange: Windows for extra guest monitors will not be shown
    2014-05-07T09:42:03.962+02:00| vmplayer| I120: cui::MKSScreenWindowCoordinator::HandleGuestTopologyChange: setting main view to all displays
    2014-05-07T09:42:03.978+02:00| vmplayer| I120: SnapshotTree: Emitting refresh (G:\VMs\Server2012RTVmware.vmx)
    2014-05-07T09:42:04.009+02:00| vmplayer| I120: VMHSVMCbPower: G:\VMs\Server2012RTVmware.vmx, Setting state of VM to powerOn with option soft
    2014-05-07T09:42:04.024+02:00| vmplayer| I120: Stats VMX "G:\Programme2tePlatte\vmware-vmx-stats.exe" not found.  Using standard VMX "G:\Programme2tePlatte\x64\vmware-vmx.exe"
    2014-05-07T09:42:04.024+02:00| vmplayer| I120: Starting vmx as G:\Programme2tePlatte\x64\vmware-vmx.exe
    2014-05-07T09:42:04.024+02:00| vmplayer| I120: Starting vmx as G:\Programme2tePlatte\x64\vmware-vmx.exe
    2014-05-07T09:42:04.024+02:00| vmplayer| I120: VigorClient_StartAndConnect Failed: Message
    2014-05-07T09:42:04.024+02:00| vmplayer| I120: G:\VMs\Server2012RTVmware.vmx: Pending power op found, completing.
    2014-05-07T09:42:04.024+02:00| vmplayer| I120: G:\VMs\Server2012RTVmware.vmx: Clearing execReqPath
    2014-05-07T09:42:04.024+02:00| vmplayer| I120: G:\VMs\Server2012RTVmware.vmx: Reloading config state.
    2014-05-07T09:42:04.024+02:00| vmplayer| I120: VMHS: Transitioned vmx/execState/val to poweredOff
    2014-05-07T09:42:04.040+02:00| vmplayer| I120: G:\VMs\Server2012RTVmware.vmx: VMHSStartVmxVigorCb: vmPath=/vm/#cf2324dcf779001d/ status=error
    2014-05-07T09:42:04.040+02:00| vmplayer| I120: G:\VMs\Server2012RTVmware.vmx: Reloading config state.
    2014-05-07T09:42:04.040+02:00| vmplayer| I120: VMHS: Transitioned vmx/execState/val to poweredOff
    2014-05-07T09:42:04.040+02:00| vmplayer| I120: Setting power state poweredOff
    2014-05-07T09:42:04.056+02:00| vmplayer| I120: Internal VMDB error: VMDB failure (-1)
    2014-05-07T09:42:04.056+02:00| vmplayer| I120: VMMgr::CloseVM: closing VM at /vm/#cf2324dcf779001d/
    2014-05-07T09:42:04.056+02:00| vmplayer| I120: DlgUI: Error while powering on: Internal error.
    2014-05-07T09:42:04.087+02:00| vmplayer| I120: VMMgr::OnVMDestroyed: cleaning up after destroyed VM at /vm/#cf2324dcf779001d/
    2014-05-07T09:42:04.087+02:00| vmplayer| I120: cui::MKS::SetAttached: detach
    2014-05-07T09:42:04.087+02:00| vmplayer| I120: cui::MKS::OnSetAttachedCompleted
    2014-05-07T09:42:04.118+02:00| vmplayer| I120: FILE: FileDeletionRetry: Non-retriable error encountered (C:\Users\Michael\AppData\Roaming\VMware\preferences.ini~): Unknown error 2 (0x2) (2)
    2014-05-07T09:42:07.488+02:00| vmplayer| I120: PlayerFrame::UpdateActivePlayer: mActive=1
    2014-05-07T09:42:09.874+02:00| vmplayer| I120: PlayerFrame::UpdateActivePlayer: mActive=0
    2014-05-07T09:44:13.286+02:00| vmplayer| I120: PlayerFrame::UpdateActivePlayer: mActive=1
    2014-05-07T09:44:13.473+02:00| vmplayer| I120: Cmd /host2/#_client/util/file/cmd/##135/op/stat/ failed: Invalid path
    2014-05-07T09:44:17.061+02:00| vmplayer| I120: PlayerFrame::UpdateActivePlayer: mActive=0
    Does anyone have
    an idea maybe??
    Vmware Version is: 6.0.2 build-1744117
    Host: Windows 7 Enterprise, 64-bit 6.1.7601, Service Pack 1
    WIN2012RT Iso is: 9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_DE-DE-IR3_SSS_X64FREE_DE-DE_DV9.ISO DOWNLOAD: http://technet.microsoft.com/de-de/evalcenter/dn205286.aspx

    Ok. I could finde out the Problem.
    I uninstalled VMware witht RevoUninstaller and deleted all Vmware sysfolders and all regKeys.
    Important note:
    The first Installtion was on the 2nd Hard disk on my PC. These Harddisk was Connected via USB3 Port. VMware was successfully installed, and via the standart installation procedure the ISO files could be installed in Vmware, but the problem persist with
    WIN2012RT server.
    After a new installation of VMware into the Local C: Drive. The Win2012RT.Iso could be installed. With this procedure
    without Issues: http://www.techieshelp.com/server-2012-windows-cannot-read-the-setting-from-the-unattend-answer-file/
    ISO Download: http://technet.microsoft.com/de-de/evalcenter/dn205286.aspx

  • In IMovie11, is it possible to add a menu page with options such as PLAY, SCENES, TRAILER, etc

    In IMovie11, is it possible to add/create a menu at the beginning of the movie with options like PLAY MOVIE, SCENES, TRAILER, etc..

    *I found a solution. HP owes me $20,000 in consulting fees.*
    To print to a LaserJet 3600 or 2600 from a newer Mac using 10.6, you must do the following:
    Step 1: Install Foomatic HPIJS drivers
    Step 2: Get an AirPort Express or equivalent print server
    Step 3: Connect the printer via USB to the print server, and connect
    Step 4: Go to Print & Fax, then click the + button to add a printer
    Step 5: Select HP Jetdirect - Socket for the protocol
    Step 6: Enter the IP address of the printer server, followed by a colon and the port number (9100 or 9101)*, i.e. 1.2.3.4:9100
    Step 7: Name the printer, then click on the Print using: drop down menu
    Step 8: Select the Select Other Printer..., and choose the appropriate HPIJS driver.
    * To determine the correct port, open Network Utility in the Utilities folder. Click on Port Scan. Type the IP address of your print server, then check the Only test ports between... and enter 9100 and 9101. It will report back the open TCP port.

  • In my opinion, the real solution is for Apple to offer us a choice of the photo sort order in ITunes. My preference would be filename, perhaps with options to choose the Date Taken attribute, file timestamp or date modified filestamp (EXIF date fields as

    I tryed to sort my pictures with buying Apps and following suggestion from apple, but without any success. In my opinion, the real solution is for Apple to offer us a choice of the photo sort order in ITunes. My preference would be filename, perhaps with options to choose the Date Taken attribute, file timestamp or date modified filestamp.

    Not a problem when using iPhoto on a Mac, which the transfer of photos is primarily based on - not manually managing photo storage as seems to be common with Windoze.
    The same should be available with a supported photo management app on a PC.
    http://support.apple.com/kb/HT4221

Maybe you are looking for

  • Add a new line using an old verizon phone

    want to add a new line to existing contract using a previously purchased Verizon smartphone.

  • 2 errors when trying to install cs4 on windows 7 ultimate x64

    I downloaded the trial version of PS cs4 to try out on my new laptop.  Its a clean install of windows 7 ultimate x64.  I gets maybe 10% into the install and i keep getting these errors... Adobe ExtendScript Toolkit CS4 Error: Error 1612. The installa

  • JDeveloper v10.1.3.0 - Debugging Mode - Unable to fiind source file

    I just upgraded to a newer (10.1.3.0) version of JDeveloper. When I'm stepping through Java code in the debugger and I need to step into code that is in another project, I get a dialog box telling me "Unable to find source file". The dialog box has f

  • Delete photos in iphoto not deleting photos from iphone

    I import photos into IPhoto. Then when Iphoto asked to delete imported photos I click yes however they don't actually delete?  The next time I try to import photos they are all there. I went into Itunes to check if my photos were synced and they are

  • Solaris 10 automount against OpenLDAP server

    Hi ya'll, Another Solaris question that I'm searching around about... I'm using Solaris's native LDAP client on Soalris 10 6/06. My LDAP server is an OpenLDAP server under Fedora Core 5. The Solaris client can talk to the server fine, everything is c