[CS3:Mac]Script Runner question...

Hi,<br /><br />I'm trying to perform a simple test  to run a javascript file in my plugin.<br />My first question is do I need to setup/register/add something in plugin to be able to run a script in plugin? the reason I ask this, i get an error in line:<br />InterfacePtr<IScriptRunner>   scriptRunner(scriptManager,UseDefaultIID()); <br />scriptRunner is always NULL.<br /><br />Does anyone know what is wrong here?<br /><br />this is my code snippet:<br /><br />           PMString      jsFullPath("Volumes/HD1/.../MyJavaScript.jsx");      // a path to my java script file          <br />        do {<br />          const IDFile outFile(jsFullPath); <br />          InterfacePtr<IScriptManager> scriptManager(Utils<IScriptUtils>()->QueryScriptManager(kJavaScriptMgrBoss)); <br />          ASSERT( scriptManager ) ;<br />          if(scriptManager == NULL) {<br />               break;<br />          }<br />          InterfacePtr<IScriptRunner>   scriptRunner(scriptManager,UseDefaultIID()); <br />          ASSERT( scriptRunner ) ;<br />          if(scriptRunner == NULL) {  // ******* Always returns NULL *****************//<br />               break;<br />          }<br />               ...<br />          ...<br />               ...  //set other params here<br /><br />          ErrorCode err = scriptRunner->RunFile(outFile, param,..); <br />     <br />     }while(kFalse);<br /><br />Thanks,<br />Mor

I'm testing this code with different version of CSx, The code works fine on CS3 version but fails( in a line that I marked) in other version .
Never mind should be OK on CS3.
Thanks,

Similar Messages

  • How can one place a single image on a spread? CS3-MAC

    Hi all,
    i How can one place a single image on a spread? CS3-MAC
    A very straight forward question I think. I just never did it before. Anyone knows of a fast technique of doing this? I have to make 70+ images this way. Could it be scripted?
    thanx in advance
    Michael

    You'll need to be more specific. Placing a single image on one spread is drop-dead simple. File > Place, choose file, click (or click-and-drag) to place, scale and position as desired. You can ask about scripting in the
    scripting forum.
    You might not need to script this to get efficient use of time. Make a picture frame on the master spread and then insert 140 pages (70 2-page spreads) based on that master. File > Place, and select all 70 files. (They need to be in one folder. Click on the top file, scroll down, lick on the bottom file.) Zoom out and click once on each spread to place each image. Should work faster that writing, testing, debugging, and running a script.

  • Photoshop CS3 Mac: Crashes on startup?

    2007.05.26 Adobe Forum
    Photoshop CS3 Mac: Crashes on startup?
    Hi all!
    I just today installed CS 3 Web Premium on my G5 (Dual 2.7GHz, 2GB RAM, Mac OS 10.4.9, all updates installed). The install seems to succeed, and I've activated the suite, and all the other applications launch without a problem. But Photoshop doesn't. It shows the splash screen and gets as far as "Initializing Suites" when it drops off the face of the earth, and I'm prompted to send a crash report to Adobe (done).
    I've tried restarting the Mac, re-installing just Photoshop, and even creating a new Admin user and trying it there, but Photoshop still crashes in the same place. So it's apparently nothing in my user account or just a randomly mucked-up install.
    I did a search here for "initializing suites" but nothing came up, and even Google found just one other report of a CS3 crash at exactly that point, so a) it's not common, but b) it's nevertheless not just me. Hmm.
    Has anybody seen this? I'm funkified...
    Pres

    Ramón is exaggerating.
    First: find the uninstaller in the Applications/Utilities/Adobe Installers and TRY to run it even though you already deleted the application.
    If it won't DO anything, go to Macinosh HD/Users/your username/Library/Preferences and delete the Adobe Photoshop CS3 Settings folder (and its content) PLUS the Adobe Photoshop CS3 Paths file in same location, PLUS the com.adobe.Photoshop.plist file in same location.
    Then try to reinstall again.
    If that doesn't work, run the cs3 clean again. Note that it is a script and that it asks you questions that you have to answer to and type in replies to for it to do anything. I fyou donät interact with it it won't do a thing. Note that it might clean out more adobe files than you would wish for.
    There are instructions here
    for how to unisntall the public beta of Photoshop CS3 but you might be able to follow those also for a non-beta. There are no instructions for manually removing Photoshop CS3 at the support center as far as I can see (on the other hand it is next to impossible to find anything on the support pages by doing a search.. search for Photoshop CS 3 for Mac and get articles about Illlustrator or CS...).

  • CS3/Mac photoshop.executeScript problem

    Hello
    I am having trouble getting photoshop.executeScript() to work on CS3/Mac. photoshop.executeScript is a simple wrapper for BridgeTalk and I want to call it from InDesign.
    I have seen reports of others being unable to get it to work. However, I have also seen reports of people doing InDesign/Photoshop cross DOM scripting.
    Using ESTK2 the following 1-line script works with target apps bridge, illustrator and indesign but not photoshop (unless photoshop is also the host):
    app.executeScript("alert((12345678).toString());");
    I would like to know whether this is a problem specific to my installation.
    I have also looked at how BridgeTalkIterator in the Bridge CS3 WasScriptLibrary.jsx does things and can't figure out how I might get photoshop.executeScript to work for me in InDesign.
    Any clues would be much appreciated...

    [email protected] wrote:
    > Hello
    >
    > I am having trouble getting photoshop.executeScript() to work on CS3/Mac. photoshop.executeScript is a simple wrapper for BridgeTalk and I want to call it from InDesign.
    >
    > app.executeScript("alert((12345678).toString());");
    There is no app.executeScript function in PS.
    photoshop.executeScript('alert("testing")') works fine for me from ESTK2 and
    from in PSCS3 on XP.
    -X
    for photoshop scripting solutions of all sorts
    contact: [email protected]

  • Observing all the undoable items.CS3 Mac

    How can I observe all the undoable actions in InDesign CS3 Mac ? Is there any simple way of achieving this. I looked at the sample code for gotolasttextedit but that has text and story tracking capabilities, how can I hook into all the commands that happening and and are undoable ?
    Any ideas how to proceed. What else can be helpful ?
    thanks
    shwetag

    tell application "System Events"
              set appList to every process whose visible is true
    end tell
    the 'visible is true' part is necessary, otherwise it will report system and background apps that you probably don't want to quit.  If you want to quit the apps as well, the following will get the job done most of the time:
    tell application "System Events"
              set appList to every process whose visible is true
              repeat with thisApp in appList
                        try
      -- attempt to quit saving open files
                                  tell thisApp to quit saving yes
                        on error
                                  try
      -- app may not be document based, so attempt a simple quit
                                            tell thisApp to quit
                                  on error
      -- weird app that doesn't seem to respond properly to apple events
                                            do shell script "killall " & name of thisApp
                                  end try
                        end try
              end repeat
    end tell
    Message was edited by: twtwtw: removed spurious 'application' keywords

  • Alternating mac face and question mark after i tried to install OS X 10.3

    I have a Powerbook G4 and I tried to update my operating sytem from 10.2.8 to 10.3 but it froze. After I restarted it I got an alternating mac face and question mark. It just ejects the CDs I try to put into it except for the installation disk for OS X 10.1.3. When I put that one in a smiling mac computer come up then all this type comes across the screen, something about kernels and panic.
    Please help me, I've got a project due soon.

    Could someone please help me,
    when i open my power book g4, an alternating Mac face and question mark appears, and no matter what I do it is still there.
    it only changes when I insert the installtion CD of MAC OS X 10.3, but after the Apple logo appears, the screen went white and sometimes just blue, and it just won't work. Then after restarting, the alternating Mac face and question mark still appear.
    i also tried the hardware test, after doing both of the tests, the result is consistently "passed". But after restarting, the same problem happens.
    what should i do?
    please help me
    thanx in advanced

  • Errors when trying to INSERT Dreamweaver CS3 ASP scripts into MySql

    Greetings everyone,
    I am hoping that someone can shed some light on an issue I have not been able to solve in the last few days. I have a website that I had built using Ultradev, then MX then CS3, using the default ASP scripts in dreamweaver and an odbc connection to an Access Database. Everything had been working fine for the last couple of years until recently where more people were visiting my site which resulted in the slowness because i was using access. I decided to move to a MySql database and that is when I ran into issues. I was able to solve most everything accept for one issue I am having. I was hoping it would be an easy transition by changing the ODBC connections but it has not been that easy. Any page I have with an INSERT command using the default Dreamweaver CS3 ASP script results in an error. Now I can query and delete and search with no problem...it is just the INSERT that is giving me issues. Here is just a general insertion script that CS3 does by default....
    <%
    If (CStr(Request("MM_insert")) = "form1")Then
    If (Not MM_abortEdit) Then
    ' execute the insert
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_adsdata_STRING
    MM_editCmd.CommandText = "INSERT INTO commenthot (yeshot, userhot) VALUES (?, ?)"
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 202, 2, 3, Request.Form("yeshotf")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 202, 3, 30, Request.Form("useridf")) ' adVarWChar
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    End If
    End If
    %>
    When I click to submit...the error i run into is...
    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [MySQL][ODBC 3.51 Driver][mysqld-5.0.67-community-nt-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' mel)' at line 1
    /fr/members/sexyoupasvote.asp, line 28
    ....Line 28 is the MM_editCmd.Execute. I notice if I put a single quotes around the ? next the the VALUE like this ('?', '?')...it does go through and the ? shows up in both fields as the data.
    ....If i put a single back quote around the column names like this (`yeshot`, `userhot`) VALUES (?, ?) I get this error and nothing gets inserted into the MySql.
    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [MySQL][ODBC 3.51 Driver][mysqld-5.0.67-community-nt-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' mel)' at line 1
    /fr/members/sexyoupasvote.asp, line 28
    ...by seeing 'mel)' show up, I know it is at least passing the data to that field.
    ....when I do (`yeshot`, `userhot`) VALUES ('?', '?')...
    it goes through and inserts ? ...instead of the real data I want to use...in this case ...the number 1 and Mel.
    ...if I do (yeshot, userhot) VALUES (?, '?')...
    I get this error...
    Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
    Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
    /fr/members/sexyoupasvote.asp, line 28
    ....any idea what to modify to make it insert the corect data? Has anyone experienced this? If I can get this fixed with just this page I can probablly fix the other pages that have teh same issue.  Is there a special setting on the MySql that I should know about to allow data to be inserted? Any help would GREATLY appreciated!
    Thank you!

    Thanks for your reply!
    When it was in Access...the datatype was Text. I used a 3rd party software to convert Assess directly to my hosting MySql server. When I logged in to see the table in MySql, it is set to Varchar(3) for yeshot and Varchar(30) for userhot. There is also an extra field I used for the KEY called commentID which is set to int(11) and it is autonumbered. Under the Collation i have utf8_general_ci set on the yeshot and userhot field. Null is No on both and the Default is set to None and all 3 fields.
    I have a form I am collecting that data from which is:
    <% If (langname.Fields.Item("langname").Value)="FR" Then
             response.write("OUI!")
             else
             response.write("YES!")
             End if %>
    <input name="yeshotf" type="radio" id="yeshotf" value="1" checked>                           
                                <span class="style10">
                                <input name="submit" type="submit" id="submit" value="VOTE!">
                                </span> -
    <input name="yeshotf" type="radio" id="yeshotf" value="2">
                                <% If (langname.Fields.Item("langname").Value)="FR" Then
             response.write("NON!")
             else
             response.write("NO!")
             End if %>
                                <input name="useridf" type="hidden" id="useridf" value="<%=(hotornot.Fields.Item("membername").Value)%>">
                                <input type="hidden" name="MM_insert" value="form1">
                              <input type="hidden" name="hdwfail" id="hdwfail" value="sexyoupasvote.asp?langname=<%=(langname.Fields.Item("langname").Value)%>&membernam e=<%=(hotornot.Fields.Item("membername").Value)%>&hdwmsg=invalid">
    </form>
    ....the form has 2 radio button and 1 hidden field where I collect the username. The radio value should either be a 1 or a 2 depending on the selection by the user. I also have a captha on the form but that does not seem the cause any problem since I am not collecting any data from it. Does this help? I left the yeshot field as Text but I can change that to Numeric data... again thanks for your assistance in helping me try to figure this out.
    ...The message I am getting now is:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [MySQL][ODBC 3.51 Driver][mysqld-5.0.67-community-nt-log]Unknown column 'Babe1' in 'field list'
    /fr/members/sexyoupasvote.asp, line 28
    ....with this setting:
    <%
    If (CStr(Request("MM_insert")) = "form1") Then
      If (Not MM_abortEdit) Then
        ' execute the insert
        Dim MM_editCmd
        Set MM_editCmd = Server.CreateObject ("ADODB.Command")
        MM_editCmd.ActiveConnection = MM_adsdata_STRING
        MM_editCmd.CommandText = "INSERT INTO dsnrenms.commenthot (yeshot, userhot) VALUES (?, ?)"
        MM_editCmd.Prepared = true
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 202, 1, 3, Request.Form("yeshotf")) ' adVarWChar
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 202, 1, 30, Request.Form("useridf")) ' adVarWChar
        MM_editCmd.Execute
        MM_editCmd.ActiveConnection.Close
      End If
    End If
    %>

  • I keep getting error messages that a script "may have stoped responding", The script in question is "contentAreaUtils.js".

    I just updated to FireFox v3.6.8, after using v3.5 successfully for many months. With the new version I keep getting error messages that a script "may have stopped responding", The script in question is "contentAreaUtils.js". My OS is Win2k SP4, with 253,424 KB RAM.
    Is there a known fix. If not, is there an easy way to revert to FireFox v3.5 ?

    Attached is an image of the error message.

  • ITunes downloaded, but does not open-Windows does not support Mac script

    I have recently bought a Toshiba laptop with pre-installed Windows Vista. I have managed to download iTunes, but I cannot open it. The computer posts a message saying that it does not support Mac script. I suppose that I need additional software (daemon tools?)? I would be grateful if someone could advise me in relation to this issue.
    Toshiba Satellite   Windows Vista  

    No, you should need nothing additional. I suspect you may have tried to download the Mac compatible version of iTunes & that's why your getting this message. Make sure you have checked the Windows version & nothe Mac version on the download page.

  • SWAP?  CS3 Win for CS3 Mac

    I have Adobe Creative Suite 3 Web Premium for Windows, and I recently moved over a Mac platform.  I am not in a position to upgrade as yet to CS4, so looking for someone who may be in the reverse situation who may want to swap a CS3 Mac for my CS3Win.
    I purchased my version as a download, so basically all we need to exchange are serial numbers, or happy to zip up the files and place online for you to download if necessary.  I am happy to do same in reverse, or receive a boxed version if that is easier.
    (Adobe only offers a cross platform exchange for current versions.)
    Please respond here if you are interested, and we can make arrangements.
    regards
    Geoff

    These forums are not a trading post. If anyone is interested, they can contact the OP via private messaging.

  • How to deactivate a Photoshop 10.0/CS3 (Mac) serial key when the workstation with the activated installation has been entirely wiped?

    Hello,
    We have a license for Photoshop 10.0/CS3 (Mac version) but it appears that the users previous workstation was wiped without deactivating the installation of Photoshop. Now when he tries to activate the product, it says that the maximum number of activations allowed has been reached. Does this mean that we need to deactivate the serial key somehow? If so, how are we supposed to do it without the activated installation?
    Thank you very much,
    Mauno-Juhani Kari
    Ambientia

    Hi Wksl98472121,
    Please share your serial number via private message so that i can help you out in activating CS3 Photoshop.
    Thank you for posting on Adobe Forums.

  • Can send me recent real time sap script interivew question?

    Hi any one plz send me the real time sap script interivew questions... or mail me on [email protected]

    Hi,
    Please check the links,
    http://www.sap-img.com/sapscripts/faq-for-sap-scripts.htm
    FAQ on Scripts
    If this data isn't enough, then you can search for SAP script interview questions in SDN, you get more results.
    Regards,
    Hema.
    Reward points if it is useful.

  • After installing new operating system, Mac started to open word when I turn on the mac and a question always appear about FaceTime.

    After installing new operating system, Mac started to open Word when I turn  on the Mac  and a question about face time always appear when turn on the mac. What should I do?

    Look in system preferences>users and groups>log in items.
    Barry

  • What is the best, cheapest way to upgrade from CS3 MAC to a newer CS for PC

    What is the best, cheapest way to upgrade from CS3 MAC to a newer CS for PC? I do graphic desing mostly print and some web and want to get into ebooks and more web graphics?

    Hi riverwalk2,
    I have check & found Design Standard CS3 that you have might be eligible for few special offer for the latest version of Adobe Creative Cloud which is independent of Operationg systems.
    Please choose the best option in http://www.adobe.com/products/discount-software-coupons.html?promoid=KAWQR
    Hope it helps you,
    Regards,
    Rajshree

  • Show file path in title bar CS3 Mac

    Hi All, Is there a setting to make Dreamweaver CS3 Mac to
    show the full path to the file in the title bar within Dreamweaver
    Code View? Right now it only shows the name of the file. I work on
    very complex web applications, and not having quick access to where
    the file can be found is extremely frustrating, and may cause me to
    use a different editor. Please someone tell me there is a fix for
    this? My web searches turned up nothing.

    There is a widget in the code view toolbar that shows you
    this information
    for all open files.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "jkies00" <[email protected]> wrote in
    message
    news:fui9q4$kk2$[email protected]..
    > Hi All, Is there a setting to make Dreamweaver CS3 Mac
    to show the full
    > path
    > to the file in the title bar within Dreamweaver Code
    View? Right now it
    > only
    > shows the name of the file. I work on very complex web
    applications, and
    > not
    > having quick access to where the file can be found is
    extremely
    > frustrating,
    > and may cause me to use a different editor. Please
    someone tell me there
    > is a
    > fix for this? My web searches turned up nothing.
    >

Maybe you are looking for

  • Gmail Account on Apple Devices

    How can all my devices sync up when making changes to my gmail contact account.  When I make a change on any of my Apple devices (iphone, ipad or macbook), it only makes the change on that device and not across all my other devices.  My calendar does

  • 2 airport expresses working together

    Can anyone help? What are the exact steps to connect two airport expresses to work together? I need to extend the range as I use my powerbook very far away from 1st airport express and having signal problems. Many thanks John

  • URGENT ! Making EXEcutable file in Forms 4.5/5/6 ???

    Dear Experts I am using Forms 4.5 & Reports 2.5 for Oracle 7.3.2 database. Can I make EXEcutable file to run the application directly ? If it is not possible in this version, Is it possible in Forms ver 5 ? ver 6 ? If so, what is the procedure / menu

  • Fk10n by plant wise

    hi gurus, Is there any report or transaction code which displays Vendor account by Company Code and a specific plant. I know FK10n but it displays the Vendor account Balance for the Company Code and not for the Plant and Company Code. Please Advise.

  • How to install Mac OS X 10.4.10 without a disk

    Hi all, Well a got a small problem. I bought a PowerBook G4 secondhand from a computer shop, wich is great! The problem is I never got any restore disk/s with it. But I want to do a restore on it because it's full of rubbish. So is it possible to do