DoScript doesn't

I am trying to run the FindChangeByList JavaScript in CS4. My FindChangeList.txt is in the same folder as the script. When I try to run the script, it crashes out here:
app.doScript(myString, ScriptLanguage.javascript);
telling me that a string is expected (Error 25).
In the debugger, I can see the string value, and it seems correct.
Here is the FindChangeList.txt entry (currently, it's the only line in the file for debugging simplification:
text {find what:"~TRA"} {applied character style:"TRA/TMS/CCC", change to:"<27A4>"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}
I really hope someone can figure out what the problem is. I am currently having to do hundreds of find/replaces by hand.
Thanks in advance.

thanks for the answer!
I've already tried eval(), but it did not work at all.
It creates the palette window but it does not execute all the code.
But I think this is because in the original code I am already using eval(). Here is why:
I have one bridgetalk-function which returns values of items as an object/array.
And the only way (I found out) to read this object/array is to use eval() ..
Is this the problem? eval? Is there a better solution for returning an object?
thx in advance!

Similar Messages

  • Remove [convert] in filename (VBscript)

    Hello,
    I rewrote a JS code in VB. Everthing works fine except the red lines.
    I open an eps-file, the script resaves the file as AI (remove the [converted]) and place the file in the same directory as the original eps-file.
    A single file with a correct path (eg c:\test.eps -> c:\test.ai) works fine.
    Set appRef = CreateObject("Illustrator.Application")
    'new inserted
    var doc=appRef.ActiveDocument
    var destFile = appRef.Documents.add(decodeURI(doc.fullName).replace(/(?: \[Converted\])?\.eps$/, '.ai'))   'also remove "[Converted]" from filename
    Set saveOptions = CreateObject("Illustrator.IllustratorSaveOptions")
    saveOptions.Compatibility = 15 'Illustrator CS5
    saveOptions.EmbedICCProfile=true 'embed ICCprofile
    saveOptions.Compressed=true
    saveOptions.PDFCompatible=true 'pdf output
    appRef.Documents(1).SaveAs (destFile), saveOptions
    appRef.Documents(1).Close 2
    Set appRef = Nothing
    I hope someone can help me

    Great about the calling procedure for "saving"!
    1 problem: the doscript doesn't work.
    I created an action: test in default actions, I runned the vbs-script by File>script>other script>open the vbs-script and then I get an error:
    "The do script command cannot be executed from the scripts menu"
    I read in the reference guide:
    Plays an action from the Actions palette.
    Note:
    Use DoScript only if you intend to run your script from an application external to Illustrator, such as the Windows® Script Host.
    Calling DoScript when running a script from Illustrator’s File > Scripts menu may yield unexpected results.
    Other suggestions to solve this problem?

  • [VB CS5] Doscript to run another vbs file

    Is something like this possible? Doesn't seem to work.
    myInDesign.DoScript "table.vbs", idScriptLanguage.idVisualBasic, myParameters,
    idUndoModes.idFastEntireScript, "Script Action"

    Hi Boble5,
    You'll need a fully-qualified path name (e.g., "c:\table.vbs") for this to work.
    Thanks,
    Ole

  • Since I installed FF4 each time I start up internet FF doesn't open and gives the report that it cannot find the proxyserver.

    Already I have changed the settings to no proxy, but it doesn't work. Each time I want to open internet again I get the same report and I have to change the setting to no proxy again! Also I noticed that FF has changed the proxy adjustment himself to 'manual proxy configuration' where it has introduced HTTP-proxy 127.0.0.1 and port 63030 himself! How can I change this for good?! So that I don't have to change the setting each time I want to open internet.

    Thank you for this information. I am going to get rid of my  i Phone5c because of this policy of Apple!  Maybe they need sued to stop this policy!

  • Apple Mini-DVI to Video Adapter doesn't fit my aluminum iMac

    I previously had a 17" white iMac (pre-Intel) machine, and about 6 months ago I bought the mini-DVI to video adapter so I could connect it to my television. Worked like a charm. But I recently bought a new aluminum iMac, and the adaptor doesn't fit into the mini-DVI port in the back of the machine. It appears the adaptor and port are both male ends.
    Has the port changed on the aluminum iMacs? The product description for the adaptor on Apple's website says it works with iMac (Intel Core Duo). Isn't the aluminum iMac an Intel Core Duo? I can't figure out why it doesn't fit and which cable I'm supposed to be using instead.
    Any advice would be appreciated!

    Hi Paul
    Yes the Intel iMac [Spec's|http://support.apple.com/specs/imac/iMacMid2007.html] call for the (M9319G/A) Apple Mini-DVI to Video Adapter!
    http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore?productLearnMore=M93 19G/A
    The iBook, eMac, or iMac G5 use the Mini-VGA to Video adapter.
    http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?mco=722 C6629&nplm=M9109G%2FA
    Dennis

  • Downloader doesn't retain previous settings

    Can Bridge Downloader be set to always open with the advanced dialog box and can it be set to retain the previous settings?  Also, is there a Preferences for the Downloader?  I can see it listed in the menu, but it's ghosted.
    It would be a real time-saver if I didn't have to re-enter all the info each time I open the Downloader -- and then start all over again because I missed something and it downloads to the wrong drive/folder or creates dated folders when I don't want them or doesn't enter copyright info in metadata... you get the idea.
    Thanks for any help with this.

    it doesn't increase my faith in Adobe software when following their procedure that I'd also have to search the system to purge it manually.  It begs the question: why did I use the latest Adobe un-installer and the latest Adobe Cleaner
    That's an understandable question and I have no certain answer for that, I'm only a user, not a technician
    But I like to think that in normal ways an uninstall keeps certain files like settings and cache as it is so you won't have to go through that work again when installing upgrades. Further guessing is that the clean tool does get rid of the hidden and/or invisible preference files but not the cache, hence my suggestion to check anyway.
    it's annoying that the Rotate tools were moved off the toolbars,
    They are not, you just haven't selected the 'path bar' option under the menu window, put a check mark in front of it in the menu Window and they are there with other useful tool icons. Aside from that Bridge stills keeps deselecting the path bar every now and then. But my hopes for CS6 on resolving that item are high.
    and having the Favourites and Folders under separate tiny icons is equally irritating and mousey.
    You are right, they are tiny but you can design your own lay out. I have both under each other in one column with a very short favorites panel and a very long folder panel. Grab a folder tab and drag it. You will see there will appear blue lines surrounding the panel. You have three columns to work with, one bleu line (either vertical or horizontal) appears at the position were you can drop the selected panel in it's new lay out. A surrounding blue line means nesting in a panel with multiple tabs. In the beginning this is a bit tricky but you will get used to that. When your happy with the customized lay out save it as a new workspace. Plenty of options!
    In PS 12.x, the implementation of the Adjustment Layers panel is also beyond belief!
    This sounds as you don't like it while others (me included) are very very happy with it! You just have to get used to different ways of working, once tried a while and getting used to it you don't want to go back, trust me (besides, the shortcuts for adjustment layers still work to my knowledge and if not you can assign them yourself in a custom menu setting).
    The problem with not upgrading to any new cycle is that the differences with prior version can get huge. It should so because software needs development and users need to get used to it. I can't tell you how often I have changed my workflow due to new methods (and knowledge) and the majority of this changes have brought me great benefit

  • HT203167 A movie I purchased in the iTunes store is missing. It isn't hidden and doesn't show up in search. I've followed support steps.  Where is it and how do I find it?  I believe I originally purchased the film on my 1st Gen AppleTV.

    A movie I purchased in the iTunes store is missing. It isn't hidden and doesn't show up in search. I've followed support steps.  Where is it and how do I find it?  I believe I originally purchased the film on my 1st Gen AppleTV...other movies show up. Help.

    It was Love Actually. It's been in my library a few years but is now missing. It's odd...it isn't even in the iTunes Store anymore. I think there is a rights issue because a message appeared in the store saying it wasn't available at this time in the U. S. store. Still, if I bought it years ago it should be in my library or I should get a refund....

  • Recently my phone updated itself to ios 7, it wont let me sign into my iphone app store to download apps,i click on an app i want it just clicks but doesn't start to download  any help?

    recently my phone updated to ios 7, it wont let me sign into my iphone app store to download apps,i click on an app i want and it just clicks but doesn't start to download, i can see thats its not signed in so i tried to re set up my account under the app store in settings , but its just a grey area and wont let me click to input any information. this happened right after i updated my phone, any help?

    Hi SarahHannah,
    If you are having trouble activating iMessage, this article contains relevant troubleshooting steps:
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    Take care,
    - Ari

  • When I login, all of my desktop items are gone, the "Finder" icon is bouncing and a message asking to restore windows is blinking but unresponsive. I can't exit out of it. What do I do? I've tried force quitting, and it doesn't get rid of it.

    When I login, all of my desktop items are gone, the "Finder" icon is bouncing and a message asking to restore windows is blinking but unresponsive. I can't exit out of it. What do I do? I've tried force quitting, and it doesn't get rid of this message. When I login to my husband's account, this message does not appear.

    Hey sunnyday7!
    Here is an article that can help you address this issue:
    OS X: How to quit an unresponsive application using Force Quit
    http://support.apple.com/kb/ht3411
    Additional Information
    OS X automatically relaunches the Finder when it is quit. If the Finder is unresponsive, use Force Quit to relaunch it. Select Finder in the Force Quit Window or Dock, then click Relaunch.
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • My macbook pro no longer connects to my TV with the mini dvi to hdmi adapter. A while ago the computer fell down and hit the cable. How can I tell if the computer is working ok. Doesn't show mirroring any more.

    My macbook pro no longer connects to my TV with the mini dvi to hdmi adapter. A while ago the computer fell down and hit the cable. How can I tell if the computer is working ok. Doesn't show mirroring any more. Was working while watching a movie but when I pulled it out from the computer and put it back in the system would no longer mirrorr the screen on the TV.

    The best option is an appointment at an Apple store genius bar.  The evaluation will be for FREE!
    Ciao.

  • Mini DVI to VGA cable doesn't send signal to the projector

    I just received a mini DVI to VGA adapter cable today.
    I connect mini DVI side of cable into my Macbook v. 4.1 and connect the other side into DGA cable, which connected to LCD projector.
    When I connect the cable to my Macbook, the opened application streched out to a full screen (seems like computer detets the cable) but projector says 'no signal'.
    Can any one tell me what is wrong it is?
    Thanks much
    Mike

    I'm still stucked.
    By reading some articles, it says even using mini DVI adapter, the signal is still digital and if the projector doesn't accept digital signal then it's no use....
    My projector is Epson EX3200 and it doesn't have any DVI or HDMI input.
    Does this mean my projector doesn't accept a digital signal?
    But, but, but if even uing mini DVI adapter cable it still doesn't conver to analog signal then why they call the cable a mini DVI to VGA cable???
    Why should this world be so complecated.....

  • Mini dvi to s-video/composite adapter doesn't seem to work?

    basically i'm trying to hook my rather new 2.53 ghz mac mini to my tv, which basically has rca inputs. so, having seen several laptops hooked to this tv as simply as using an s-video to composite adapter, i figured it would be as simple as getting the mini dvi to composite adapter and i'd be good. well, for some reason this doesn't seem to do anything. the other weird thing is that when i hook the cable from the composite adapter to the tv, i get a buzz out of the speakers as the connection is being made. why is a video signal having anything to do with the audio? plugging my playstation 2 into the same input works fine. why the difference?

    Boece wrote:
    !http://images2.monoprice.com/productmediumimages/47241.jpg!
    +
    !http://images2.monoprice.com/productmediumimages/48501.jpg!
    That's the setup I've used. Works great for video and photos, but webpage text can be difficult to read.
    I used the yellow composite input rather than the s-video. My old tv is inside an “entertainment center” type tv stand and is so friggin heavy, it’s a pain in the axx to move, so I just used the composite plug on the front of my tv. Since the Mac mini is sitting in front of the tv it works great:-)
    http://discussions.apple.com/thread.jspa?threadID=2430645&tstart=0
    Message was edited by: James Press1

  • Mini-DVI to S-Video Adapter doesn't work

    Hi, I am using the Mini-DVI to S-Video adapter from apple to connect my macbook to the TV. But the only thing I get is a grey flickering picture on my TV. When I click on the monitor-button I can see that my macbook detects only a monitor (but not a TV) in addition to the macbook-LCD-display. I tried all different resolutions, but needless to say it doesn't work.
    Can the adapter be broken, or is there a problem with the macbook?
    Macbook white 2 GHz Intel Core Duo 1GB RAM   Mac OS X (10.4.8)  

    my macbook detects only a monitor (but not a TV) in addition to the macbook-LCD-display
    If you connect the Mini-DVI to S-Video adapter, the monitor button on the menubar should show resolutions for Color LCD in one section and NTSC/PAL in the other.
    A grey flickering picture is indicative of picking the wrong standard-PAL vs. NTSC.

  • DVI to Video adapter doesn´t work! HELP!

    I bought a dvi to video adapter (RCA or SVideo) and I already tried on two diferent TVs and none of them worked? What should I do? Does it have a setup to do?

    We really need some more details to be able to help with your situation.
    Is the adapter an Apple one, or some other brand?
    What model TVs do you have? Please be as specific with the model numbers as possible.
    When you say it doesn't work, what exactly happens?
    And finally: what kind of Mac do you have? You posted in the Mac Mini forum, but your signature says MacBook.
    If it is a Mac Mini, did you set it up initially using a regular monitor first?

  • My thunderbolt to firewire adapter doesn't fit the firewire???

    I bought the apple store "Thunderbolt to FireWire Adapter" today.  I'm trying to put my old iMac in Target Mode and move old files.  The firewire cord doesn't fit into it???  I'm sitting here feeling pretty stupid and stumped?

    Your firewire cord is the wrong size.  Apple's cord is 800 port.  What size is your cord? 

Maybe you are looking for