Script Alert SyntaxError: Expected: }:1

While trying to run the Adobe Watermark Palette, I receive the syntax error as stated in the subject of this posting.
I removed the Watermark Palette using Adobe Extension Manager and reinstalled it. I receive the same error.
I've  double and triple checked all of the settings in the palette.  Everything looks right. Both preview and run yield the same error  message.
Any hints on how to debug this problem?
Yes... it did work once upon a time. I don't know what has changed.
Thanks,
Drew

I would go get the latest version from http://russellbrown.com/scripts.html Version 2.0.6 is the latest and you should see that information in the flyout menu for the panel in the upper right. If you have that version try the 'Reset preferences' option and restart Photoshop.
I think this had to do with characters in the file name and the fact that we didn't escape/encode everything correctly to get the info from the panel to the script.
If you have version 2.0.6 please send me the log file (using the panel menu) so I can see if we need more protection code for this problem. And the file that you are trying to use if you can isolate it to a certain file.

Similar Messages

  • How to creat a "The command is currently not available" script alert?

    I'm working to construct a Configurator-like panel whose buttons play actions located on Photoshop's regular Actions panel.
    I'm using Eclipse and the EB3 plug-in and have made decent progress.  Here is a sample of code from the Photoshop.jsx file that is executed for one of the buttons.
    $._ext_CURVESLAYER={
        run : function() {   
            doAction('Curves', 'Adjustment-Layers');
    Very basic.  Just a doAction command to find the necessary action set and action and play it.
    When using Configurator and the necessary action is NOT present on Photoshop's regular Actions panel, a script alert is generated that says  "The command is currently not available"
    The panel I've created using EB3 doesn't provide this alert.  Nothing happens when I click a button on the EB3 panel whose action is missing from Photoshop's regular actions panel.  I'd like to be able to generate some type of message, like this script alert, if the action in the doAction command doesn't run as expected.
    It looks like Configurator may have used this code to generate this script alert base on the fact that it contains the words : "The command is currently not available"
    function ps_invoke_action(actionSet, actionName)
        var action = decode(actionName);
        var group = decode(actionSet);
    writelog("invoke action " + action + " " + group);
        ErrStrs = {};
    ErrStrs.USER_CANCELLED=localize("$$$/ScriptingSupport/Error/UserCancelled=User cancelled the operation");
        try
    app.doAction(action, group);
        catch(e)
            if (e.toString().indexOf(ErrStrs.USER_CANCELLED)!=-1) {;}
            else
    alert(localize("$$$/ScriptingSupport/Error/CommandNotAvailable=The command is currently not available"));
    I don't know Java at all, but I'm pretty sure this code doesn't work with the EB3 panels.  I tried copying it into the ext.js file and it had no effect.  (Most of this has been trial and error for me, and I thought that would be worth a try.)
    Can anyone help me with the code I need to use to generate the appropriate script alert if the doAction command doesn't run properly and where to put it in the various files required for an EB3-generated panel?
    Thanks!

    Hi,
    As per my knoledge, there is no automatted way to find out from which (Command line, Application and Script) the application is running. here
    i am suggesting some guidelines as specified below.
    1. Define standard arguments codes for the decrypt program like.
    1 - for Application.
    2 - for Script.
    3 - others.
    if(args[0] == 1)
    Decrypt PWD
    else if(args[0] == 2)
    DO Some thing
    else if(args[0] == 3)
    DO Some thing
    else
    -- Do not Decrypt --

  • Script Alert: can't find .js files even though they're in the folder that the program looked in to?

    I'm new to the whole After Effects community and I am currently using it for a project.
    I followed a tutorial by Mt. Mograph on youtube and I downloaded the script "Ease and Wizz".
    I have it as a panel and all, but every time I attempt to apply my desired expression, a popup box says that there is a script alert and it can't find the file for the expression.
    Is there something that I'm doing wrong? I have tried to remove the script and download it again, but nothing has worked for me.

    Try to copy "easingExpressions" folder that came with the script into this folder:
    C:\Program Files\Adobe\Adobe After Effects CC 2014\Support Files\Scripts\ScriptUI Panels\

  • OWA email shows "script alert undefined" message

    I have an internet enabled Nokia E71. when I try accessing my (web based) microsoft outlook web app mail through the web on the phone, ie. by typing web address as 'https://owa.*****.org/owa' then on entering the username and password mail account opens for a second and there is a pop up notification which say 'script alert: Undefined' and on clicking OK, another screen opens which says 'You have succesfully logged off from outlook web app'.
    It worked up until we upgraded our Exchange Server in August! any ideas?

    Hi friends,
    I am using N79 and get the same error. I tried different browsers, finally opera did it.
    Download  "opera mobile 12 (S60)" and it works fine with the OWA in light version as like tablets.
    To get Opera mobile click: http://www.opera.com/mobile/download/versions/
    Have Fun!!!

  • CS3 "Script Alert" !?

    Hello !
    Using my (licenced and registered) Photoshop CS3 Extended to process my NEF files coming from my Nikon D300 never made a problem, ...till yesterday !
    It first opens under Bridge CS3 (as usual) to be able to roughly tune the exposure, light and general contrast if needed and then arrives into Photoshop CS3 itself by clicking "ok".
    It is at that very moment that I get a message on screen.
    Here is the text:
    "Script Alert ! Nikon Corporation, Nikon D300 was used to shoot this file."
    This being followed with the usual "OK" button to go on (and it goes on without any problem).
    Why do I get this message each time ?
    How can I do in order to prevent this message to appear each time I open a (Nef) file made with the D300 ?
    Did some of you experience this before ?
    Thanks a lot for your help and kind cooperation !
    PS: I made a trial with a Nef File from my other Nikon (D200) and the problem does NOT happen ! I don't understand...
    Pol

    Hello !
    I am the kind of guys who want to understand the "why" of a situation, and as I mentionned in the beginning of my thread, it is the main reason why I asked this question in this place.
    Thanks to all who tried to guide me and help me with the "problem" I had.
    Before doing a reinstall of the software, which is indeed the easiest way to solve many encountered problems, I looked a bit further ...and finally found the "why" of this recurrent alert message !
    It is just one line in the msconfig !
    >Start >Execute "msconfig", then "OK"
    In the new window select the colum "starting programs" (or "start") and you will find in the list just one line which has to be desactivated under the name of "Nikon Monitor".
    Apply and restart the computer ...the Script Alert won't appear any longer !!
    Happy I found, I really feel better :o)
    Hope this will eventually also help other users of Photoshop CS3 Extended who encountered the same problem !
    Pol

  • Script Alert: "Sorry I could not process the following files" (Error Message using Image Processor)

    I'm a seasoned Photoshop/Bridge CS5 user who recently upgraded to CS6.  In Bridge I just ran my first Image Processor batch, trying to convert a set of RAW .NEF files to .PSD files with a basic editing action I created applied to them.  Photoshop CS6 opens the files from Bridge and applies the actions, but then I get the "Script alert" error message "Sorry I could not process the following files" and a list of all of the files in the batch I was trying to run the script on.  The files all remain open and are saved on my hard drive in a folder created by the Image Processor script, but do not close unless I manually close them.  I never had this problem in CS5 where the image processor would apply the desired actions to the batch of photos one at a time, then save and close.  Thoughts on how I can fix this bug?

    Hey Jeff--
    No specific action steps to make the image safe - no flattening, etc. Had problems narrowing down the specific action step causing the problem. So I ran the Image Processor script in the ExtendScript ToolKit and debugged in. (I'm using the version that shipped with CS4.)
    Turns out what was happening is that the app.activeDocument.close() command on line 1490 was never getting called, because the this.SaveFile() above it was throwing an exception. More debugging got me to the problem - SaveFile() tries to restore the history state after making a doc safe for saving as a JPEG. This causes an exception. So I commented out line 1571:
    // app.activeDocument.ativeHistoryState = historyState;
    The script runs just fine after this. I commented out the close to see what history states got added to the doc, but no new states are recorded, so commenting out the restore line should not cause any problems.
    Of course, my solution does not solve the problem and I may need to comment out all the saveFile() lines that does this. Not sure why some actions have this problem and others don't. The actions I am running have about 25 steps. Perhaps PS is not catching up quick enough. I added a $.sleep(2500) after the restore history but that didn't help.
    So, not sure where this gets us. I will check about posting an action set with just one of the actions that cause the problem. But I may also have our customer comment out that line of the Image Processor script.
    Hope this helps. May post more next week.

  • Script Alert "You should only run scripts from a trusted source."

    I created a small javascript which opens Photoshop and resizes some images.
    I want to be able to double-click the .JSX file from Windows Explorer, and have Photoshop execute the script. Likewise, I want to be able to run the .JSX file from the command line.
    The script runs perfectly. However, the problem is that I don't want any user interaction. I want to be able to run the script from the command line without the user having to click anything. What happens now when I try to run the file from Windows Explorer of the command line is, I get a Script Alert with the following text:
    You are about to run a script in Adobe Photoshop CS3. You should only run scripts from a trusted source. Do you want to run the script? Yes/No
    Is there any possible way to bypass this message or to answer in the affirmative?
    Thanks,
    Jamie L.

    Hi... Sorry to revive such an old thread,
        Does anyone know the "trusted source" folder for MAC CS4.
    EDIT!
    My bad.  "The /users/<user_name>/documents/Adobe Scripts" folder is working for this purpose for me.  I needed a path to it and forgot that the ~ resolves to the current user.  Sweet.
    -Bill

  • Java script Alert-"Adobe Flash Player has stopped a potentially unsafe operation". Can't enable it.

    I am running Windows 7 SP1, Presenter 7.0.0 version 7328 and Powerpoint 2007 (v12.0.6525.1000.)
    My powerpoint file is running in 97-2003 compatibility mode, and I have produced a Presenter project with a link to some web content (a youtube-like video).
    In Firefox browser v23.0.1, I can open the Presenter project from it's html starting point, right click on the SWF presentation as it is running, select global settings, on the advanced tab select trusted location settings, enter the website adress to the youtube-like content, and close the browser, reopen it, and the content launches without a Java script alert.
    The Chrome browser will not do this. (Version 29.0.1547.76 m) (We are not using IE)
    Even setting the web page security permission from the control panel and rebooting will not hold the website in place in the Flash Security settings.
    Even going to the web site and editing directly will not work for chrome - ie, here:
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l
    By the term "not hold the setting" I mean upon reboot the website is no longer listed as trusted in global settings, nor in Chrome, nor in Flash security settings via Control Panel in W7. It IS listed in Firefox global settings as trusted, and so the content launches from Firefox, as said.
    Firefox is persistant, Chrome is not, and so - is it a buggy Flash Security setting issue? Or a windows/chrome issue? Or my poor local machine....
    Anyone have any ideas?
    /brad

    Hi Chris:
    Thanks for the fast reply!
    I looked. Unfortunately, the people viewing it have their laptops locked down, so cannot access the Internet, Control Panel or Flash Player Settings. So the suggestions there do not help. Anything that you suggest?
    Is there anything I can do at the production end to help?
    Thanks again for your response. It is a bit of an urgent situation, so I really do appreciate it.
    Lavern Wiebe
    <mailto:[email protected]> [email protected]
    Ph: 630.585.5450

  • How to increase font size in Java script alert message

    Is anybody know how to increase font size in Java script alert message
    THanks in Advance ....

    Hi,
    You can NOT do it with Javascript.
    You need an alternative solution: http://www.apex-plugin.com/oracle-apex-plugins/dynamic-action-plugin/popup-box_84.html
    Tobias

  • Javafx script alerts in Internet explorer

    Hi ,
    I'm getting about 4-6 script alerts in internet explorer when i load the javafx applet in browser.Following is the code i',m using to load the javafx applet.
    <script>
                                                                    javafx(
                                                                        archive: "/sisJars/VideoPlayer.jar",
                                                                        width: 646,
                                                                        height: 375,
                                                                        code: "com.sis.recordit.jfx.player.Main",
                                                                        name: "Player",
                                                                        id: "Player",
                                                                        jnlp_href : "/jnlp/videoPlayer.jnlp",
                                                                        xyz: "abc"
                                                                </script>It would be very helpful if someone suggests the possible cause of error.
    Thanks in advance

    I have included the dtfx.js file in the html head block.
    Regarding line number, i'm just getting alert with the message "syntax error" but i cannot see any line number.so i'm not sure if i provided the information you asked.If this is not what you asked, please let me know what to provide ,so that i can provide with the information you need

  • Script alert error

    I am using SC5 on a windows machine with XP operating system.  I have recently started getting a script alert that stops the process of copying files as follows.
    In bridge I have made some adjustments in Camera Raw.   I slect a number of files I want to copy with the changes in Camera Raw.  Under the Tools menu I choose Photoshop - Image processor.  I make the slections I want (typically saving as JPEGs and in the same location with no actions).  It starts out Ok but then stops with a pop-up stating
    Script Alert
    Sorry, I could not process the following files:
    E:\***
    It will sometime write the first 15-20 files but not the remaining files.  I have purged my Cashe but it does not seem to help
    Any ideas?

    Names are Ok.  I believe it has something to do with the way my computer is handling my memory.  If I only slect 15-20 files it seems to work fine (though a lot slower than before).  If I slect 200 files it stops after processing 20 or so files?  In the past I never had this problem before.  I have also checked my hard drives and have plenty of space left.

  • Script alert

    M using N8 wen i try use FB through ovi i get this script alert: sorry uninstall and reinstall communities pls advice

    Try to copy "easingExpressions" folder that came with the script into this folder:
    C:\Program Files\Adobe\Adobe After Effects CC 2014\Support Files\Scripts\ScriptUI Panels\

  • Annoying IE script alert

    Every time I type up a form to place a book on hold at my library, and I get to the part where I enter "submit" a script alert comes up that says that I "must enter an activation date greater or equal to today's date". I do have the current date down, yet it somehow doesn't recognize it. I've tried to put a date greater than the current date in and the script alert still pops up. It will not let me get past that. I've also tried to uncheck "enable scripting" in the preferences box, but that doesn't help either. I've done the same functions on the Library computer and I have no problem. The librarian tells me it is something with my internet explorer.
    Can someone help me figure out how to get around this??
    Thanks, in advance

    Windancer,Microsoft have dropped all support for Internet Explorer on the Mac. Take a look at this list of alternative Web Browsers that hopefully won't have the same issues (List items in Red).
    regards
    mrtotes

  • Weird Script Alert message

    Using PS CS3, I opened a few JPG images taken with a Nikon D100 a few years ago. I copy/pasted one image on top of another, flattened it and saved as a PSD. Later on, when I double-click on the PSD, PS opens and I get a script alert:
    "Nikon Corp, Nikon D100, was used to shoot this file!"
    Well, yes and no. The original JPEGs were of course shot with the D100, but the PSD certainly was not.
    So, if I leave PS open, close the file and double-click it again, the same message does not appear. But if I close PS and then repeat the above, the message re-appears. Which leaves me with two questions:
    1. What's the point of this misleading message?
    2. How do I get rid of it, permanently?

    My first guess is that you might have an event setup in:-
    File - Scripts - Scripts Event Manager
    There is a script in there that does give model and make, maybe someone has modified it so that it only alert on a certain type/make?

  • "Script Alert" cannot upload files

    I am using Photoshop CC 64bit. I used the program yesterday and worked like normal. Tried to use the Scripts image processor and it gave me this warning. I keep trying it and sometimes some files work but I still can't open them up. What can I do?

    Was there a script line number in the message???
    The alerts I see  none seem to be about upload??? and the string "upload" is not in the script.  There is one alert the first one that catches errors but it should include the line number of the script statement that encountered the error...
    Here are the alerts I see in the script;     
    alert( e + " : " + e.line );
    alert( strSpecifySource );
    alert( strSpecifySource );
    alert( strSpecifyDest );
    alert( strSpecifyDest );
    alert( strJPEGQuality );
    alert( strJPEGWandH );
    alert( strTIFFWandH );
    alert( strPSDWandH );
    alert( strOneType );
    alert( strNoOpenableFiles );
    alert( strCannotWriteToFolder + File( subFolderText ).fsName );
    alert( strCannotWriteToFolder + File( subFolderText ).fsName );
    alert( strCannotWriteToFolder + File( subFolderText ).fsName );
    var message = strCouldNotProcess;
    message += File( this.fileErrors[i] ).fsName + "\r";
    alert( message );
    alert( strWidthAndHeight );
    alert( strMustUse );
    alertNonSavedDocs = true;
    alert( strMustSaveOpen + "\r" + strFollowing + "\r( " + nonSavedDocs + " )" );
    ; // alert ("Ack! bug in NumericEditKeyboardHandler: " + e);     

Maybe you are looking for

  • Safari 5.0.2 crashes when I login to Facebook

    Each time I get on Facebook, Safari crashes. I've read previous discussions and someone said to go to Macintosh HD and then click the Firstaid tab...but I do not have a Firstaid tab. This is the message that pops up: Process: Safari [367] Path: /User

  • Embed Form not working in Dreamweaver

    When the code for Embed Form is copied and placed into my Dreamweaver page, the form will NOT allow users to fill out the form when they go to my site. None of the fields are active. I had to use the Web Form in order to get an active form. Please ad

  • Strange behavior in Nokia Multimedia Transfer

    Hi, I tried to use Nokia Multimedia Transfer as workaround for the missing Podcast in E52. So I subscribed in iTunes to Video and Audio Podcasts.  So I marked the Podcass folder in Device Settings. Now the strange things: 1.    The Audio Player on E5

  • Problem with encoded UTF8 parameter when calling request.getParameterValues

    I'm losing some parts of my parameters when I get to the servlet. Using the java.net.URLEncoder on an English/Chinese UTF-8 string combination, I created a URL with a parameter "pk". I use this in an HTML page that calls a servlet. Here is what I set

  • Regular expression and Script component in SSIS 2008

    Could you please help me to write regular expression so that it can be used in script component to fetch the data from fixed width file so that the file format can be validated and loaded accordingly.   IR-TYPE                        PIC X.  IR-JOB