doScript does not

Hi all

below the doscript code works only with the onClick event. But when I try this without onClick event his works very well. What is wrong with him?

dialog box. IconButton.onClick = function()

{

" openurl var = ' tell application \"Safari\"\ractivate\rdo JavaScript \"window.open('http://www.yahoo.com')-"in the document 1\rend say"

app.doScript (openurl, ScriptLanguage.applescriptLanguage)

}

Any other suggestions for goto URL on click the button image with Javascript or Applescript.

Thank you

Shonky

var linkJumper = File(Folder.temp.fullName+"/In-Tools.html");
linkJumper.open("w");
var linkBody = ' 

' linkJumper.write(linkBody); linkJumper.close(); linkJumper.execute();

Substances

Tags: InDesign

Similar Questions

  • Run URL does not

    Hi all

    This is my code:

    var str = "do shell script-" http://192.168.9.218/AGS/indesignReturn.php?rtype=closeSignal & fileStatus = 5 & BatchID = 331320 \"";

    app.doScript (str, ScriptLanguage.APPLESCRIPT_LANGUAGE);

    It does not run what the problem

    Thanks in advance,

    Mahesh

    Dirty solution...

    JS code

    // URL escape & by \\
    var myURL="http://192.168.9.218/ags/indesignReturn.php?rtype=closeSignal\\&fileStatus=5\\&batchId=331320";
    // call a applescript
    var mScript = "/Users/xxx/Desktop/openURL.scpt";
    var mResult = app.doScript(mScript,ScriptLanguage.applescriptLanguage,[myURL]);
    

    openURL.scp

    set myURL to item 1 of arguments
    try
        set openURL to do shell script "open " & myURL
    on error errStr number errorNumber
        set openURL to false
    end try
    return openURL
    
  • Cannot delete alias if the referenced object does not exist

    My JavaScript does not alias in OSX when the referenced object no longer exists. The bug occurs on a network volume when the referenced object has been deleted or moved from another system. Do you have any idea how to remove/relpace this alias dead with JavaScript? Why it is not possible to remove an alias with a missing object? Thank you for helping me!

    myShortcut.remove ();

    Bildschirmfoto 2012-03-21 um 10.52.26.png

    Hmm. I have no problem removing broken aliases created in the Finder, but am not able to delete the symlinks broken on remote filesystems created with ln -s (or withile.createAlias ()f). Seems to be a bug for me, as the broken symbolic link can be deleted otherwise (in the Finder or with rm ). I guess you can use doScript() and an Applescript script:

    app.doScript('tell application "Finder" to delete POSIX file "' + myShortcut.fsName + '"', ScriptLanguage.APPLESCRIPT_LANGUAGE);
    

    Slow, however. You can use a 'do shell script' Applescript with rm but the multiple levels of bids and escape are a puzzle.

    Jeff

  • iPhone 7 more buttons outside does not

    I've had my iPhone 7 + for about 2 weeks now. Every once in awhile all buttons outside to stop, volume up/down, power, home. The home button will still record and push and give the sensation of taptic and touchID works. The phone itself still works and I can answer texts and which do not use notifications.

    The couple spent time he did, he came upon her in about 4-5 minutes, however it was about half an hour and still nothing. I want to restart my phone, but the switch does not work.

    Has anyone seen this issue or know how to fix?

    Thanks in advance.

    I just experienced the same problem on my iPhone 7, I think it's a bug in iOS, but I am using iOS 10.0.2. Power + button low Volume allowed me to turn it off then turn it back on... Apple please fix this bug!

  • App store, Safari and iTunes does not connect to the Internet after installing macOS Sierra

    App store, Safari and iTunes does not connect to the Internet after installing macOS Sierra

    After upgrade 'OS X El Capitan' to "macOS Sierra" window only empty "App store" and page "Safari" made its appearance, no error message shows. store "iTunes" and "Dictionary" does not connect too.

    But Google chrome works well.

    So have you tried the next steps in your original post that Safari does not work after installing macOS Sierra:

    (1) x OS: "Unable to connect" or "unable to connect to the App Store. An internet connection is required"- Apple Support

    2) Advanced the steps to correct the problems with the iTunes Store - Apple Support connection

  • Safari does not work after installing macOS Sierra

    Safari and apple store does not work after installing macOS Sierra

    Alas, my crystal ball is in the shop for cleaning, so you will need to provide more details on what "doesn't work" and above all error messages. First of all, let's start the App Store. Provide as much information as possible for those of us who do not sit on your shoulder.

  • My iPad Apple 3rd generation wifi + his cell phone does not work

    MY 3rd generation Apple iPad, wifi + cell

    model number MD408LL/a

    Serial number DM * VGL

    THE SOUND DOES NOT WORK

    < personal information under the direction of the host >

    All sounds, or simply notification and sounds apps (for example do music and videos app still have sound)? If notifications and apps you have notifications on mute: on the iPad side switch - Apple Support ? If the sounds in all applications which have tried for example soft-reset/reboot of the iPad, insert/remove the headphones?

  • After recent, iPhone, 6, update, Windows, Explorer, does not work, see, iPhone

    I installed the latest update required for my iphone ios 6 a few days ago, and now when I try to download pictures from my iphone to my PC (via USB connection), the PC does not see the iphone.   iTunes sees it yet, but windows Explorer does not work.  It seems that some setting has been broken through the update of ios.  A way to solve this problem?

    Restart the computer and the iPhone. Unlock the iPhone before connecting it to the computer. Any change?

    TT2

  • iPhone 7 more telephoto camera does not

    Is anyone having problems with iPhone 7 more telephoto does not activate. I'll go to the camera application and press the 2 x zoom feature, but it appears to be not to activate the camera of 56mm at the front. I cover the lens with my finger, the camera on the right side and the iPhone always displays an image despite me concealing one of the cameras teo. I can't activate the second camera. It seems to only be zooming digitally. I'll do this outside and he'll only digitally zoom when I hide the second lens.

    Im having this same problem. I heard from someone that he could not work until the next software update... but I have no idea and have not found anything in the online help. If someone else gets to know how.

  • Contact ID battery fast draining iPhone 5s does not

    5s fast drainage and Touch ID sinice 10.0.2 iOS iPhone battery update does not

    Restarted the iPhone since the update yet?

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo.
  • Open the link behind Mail does not work

    Sierra using my link opened behind Mail does not work. The link opens on the top of the window.

    This option works for me in Sierra... is working for you with your previous version of the OS?

  • Update for Sierra and now my Apple music does not appear I have a subscription and I am unable to get my music on the cloud?

    Update for Sierra and now my Apple music does not appear I have a subscription and I am unable to get my music on the cloud?

    Hey there Scotchman2926,

    I understand that you are experiencing some problems with Apple music on Sierra. I have a few suggestions to help you solve this problem. First of all, if you are unable to access the iTunes Store as well as music from Apple, use the information in this article to help resolve this problem:

    If you cannot connect to the iTunes Store - Apple Support

    If this does not resolve the problem, you might try signing out of your Apple ID in iTunes and then connect again.

    Thanks to be come to the communities of Apple Support and let us know how it goes.

    See you soon.

  • iPhone 5 home button does not work after ios 10

    My 5 Iphone Home button does not work after update final IOS version of 10.

    The home button works on the first push to wake the phone but it will not open the phone the second button.

    I activated the assist button, which does not work either. But what I discover is if I open device for assistance then touch and lock screen click on the button home will work once to open the phone. If I open any app I can't close it unless I go through the same routine.

    You attempted to restart your phone?

    You can do so by holding the sleep/wake button and the Home button simultaneously until the Apple logo appears

  • New IMac does not, Apple does not change

    https://www.YouTube.com/watch?v=UdUY038FwCI

    I have this problem since I was the imac. I pointed out in 3 days. Apple does not change because I didn't buy that at its retailer. 3 months, still waiting.

    What should I do?

    Everyone pays even, but I get nothing (same lack offers as a freelancer). I think it's fair. What am I, I guess what to do?

    Run the Apple Hardware Test > Apple Hardware Test - Apple help

  • Why Safary does not load the content of pages?

    Why Safary does not load the content of pages? I mean, when I hover over the places where should be the content, he is always showing the "redirect to: [email protected]/" lower left. My Safari is 9.5 and worked fine until Safe Fimder Virus get inside my computer. Mozilla Firefox is a bit slower. If someone could give me an idea on how to deal with it, I would be happy.

    Sorry if my English is not good, I am a Brazilian who is still learning English

    Your English is very good!

    Redirects are usually due to adware or malware.

    Download the run MalwareBytes.

    It of free and takes only a minute or two. Which should remove all adware and malicious software on your Mac.

Maybe you are looking for

  • MacBook Pro goes black rear boot.

    This is my daughter pro MacBook. I remember exactly what OS it is running, but I think it's 10.9 She returned to be there and told me that one day it just started doing this: After starting and the normal boot process, the screen goes black and a few

  • Installation and implementation of new programs on OMNI 10

    I'm learning how to use my new OMNI 10 Tablet, but I can't know what I need to install a program on this subject.  I have a HP desktop and drives for laptops that both have CDs. Do I have to buy an external CD drive to install a new program (not app,

  • issue of cal 2008 Server

    When you have a Server 2008 running, are the 2008 in use licenses?  Also, if 2008 cals are purchased through OEM, (we have all serial numbers), where I could continue to obtain copies of certificates.  If the server runs with Cal 2008 is really neces

  • dialog box

    Hi people, I have a task in which I got display a message or 10 dry and close the immediately.can you help me?

  • Request a product key after 3 years. Product included with Dell original keys do not work.

    Over the past two days, Windows started asking me to validate my product code.  This, despite the fact that I had the same OS since May 2007.  I do not know what prompted the change, but I have two codes of product on the CD provided by Dell.  One is