Open a URL from InDesign (JS OSX CS3)
Hi -- I have some limited experience javascripting In InDesign. Most of what I have done focuses on text and documents, so I need to ask a question that is outside my current experience.
I am trying to write an Indesign script that when deployed by a user opens a URL in a Web browser. It would be the same url every time -- not dependent on any hyperlinks that may or may not be in a document.
Is there anyway for me to use a Hyperlink.showDestination()function to accomplish this using this static URL within the script? If so, I am unsure how to proceed.
Any thoughts would be greatly appreciated.
thanks
Check out this post.
Kasyan
Similar Messages
-
I opened RAW files from D800 accidentally in CS3 (on old laptop) and are unable to open them now CS6. How to open them?
Sorry, yes this is Microsoft Excel. The Microsoft XP has Excel files denoted as xl, the later versions of Microsoft Excel are denoted as xls files. The later verions of Microsoft Excel open the xl files OK, does Excel for Mac not able to do this?
-
This problem only started recently.
Opening another web page (URL) from my homepage always opens in the same tab and the "go back one page" button is gray and does not work. If I open a series of web pages in the same tab the green "back" button is green. Clicking on the "recent pages" down arrow will allow me to go back, but only to the page after the home page.
In other words, after browsing, I can get back to the opening page (my home page) only by clicking on the house icon but not by using the "recent pages" function.
Is there an option that changed after the last update?Do you see any tab history if you right click the Back or Forward button?
Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
* Don't make any changes on the Safe mode start window.
See:
* [[Troubleshooting extensions and themes]] -
Opening an URL from a JAVA application
hi,
iam new to Java.
Currently iam designing a simle GUI which takes input(URL) from user in a test field and has a button.Upon clicking button i want to open the webPage specified by that URL in a default webBrowser.
How can i do that(opening webPage)?
advanced thanks for your help.
vd.rachgetting an error on that line as follows: "unreported
exception; must be caught or declared to be thrown".exec() throws IOException so catch it.
try {
Runtime.getRuntime.exec(...);
catch(IOException e) {
System.err("Cannot launch the browser: " + e.getMessage());
}On the side note: I found javaworld's [url http://www.javaworld.com/javatips/jw-javatip66_p.html]solution most useful in serving this purpose in a project, even though its a little bit platform specific. -
Issue in opening an URL from UI
Hi Experts,
When clicking button in an assignment block of campaign screen, it should open an URL (SRM screen) in new window.
I have written the following code in htm page inside script tag.
window.open("lv_url").focus();
lv_url is obtained from the eventhandler onclick.
First time, when I click on the button, the URL is opened in the new window successfully. If I close that window (SRM screen),
and click on the button again, it is executing the code window.open but not opening a new window. Please help.
Thanks,
RamyaHi Ramya,
The problem is with the window handler. That is the window handler doesnt terminate even when you manually close the new window and so when attempting to open a same url it doesnt show up.
One solution is to generate a guid and pass it with the url so that the url will differ (since the guid differes the url will not be the same). Check the below sample code,
<%
CALL FUNCTION 'GUID_CREATE'
IMPORTING
EV_GUID_32 = lv_guid.
CONCATENATE 'guid=' lv_guid INTO lv_query.
CALL METHOD cl_crm_web_utility=>create_url
EXPORTING
iv_path = lc_path
iv_query = lv_query
iv_absolute = lc_flag
iv_in_same_session = lc_flag
iv_server_object = server
iv_no_cookie = 'X'
RECEIVING
ev_url = lv_url.
%>
<scirpt language="javascirpt">
window.open(' <%= lv_url %> ');
window.close();
</script>
Regards,
Arun -
Want to open a URL from java application?
I want to open a URL (say http://yahoo.com) from my java application without using servlets. PLzzz help asap
Include these packages:
import java.net.*;
import java.io.*;
Proxy Setting If any:
//getProxy your proxy address default "No Proxy".
if (!getProxy.equals("No Proxy"))
System.getProperties().put("proxySet","true");
System.getProperties().put("proxyHost",getProxy);
System.getProperties().put("proxyPort","80");
Main code:
URL url = new URL("http://mail.yahoo.com");
URLConnection connection1 = url.openConnection();
String filetext=postURL(connection1);
Function postURL:
public String postURL(URLConnection connection)
try
BufferedReader httpResponse = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String line = new String();
StringBuffer buffer = new StringBuffer();
while((line=httpResponse.readLine())!=null)
buffer.append(line);
httpResponse.close();
return buffer.toString();
catch(Exception e)
System.out.println("Error:"+e);
return "Error4" ; -
Hi,
I'm running a servlet and wants to open a URL for a file, how do I do that ?
(To get the same effect as if I open the file from a browser)
thanks in advance..
..Per
If you mean to read the contents of a URL, then see URL.getConnection. If
you mean to download a file to a browser, then search this newsgroup for
"download".
Cameron Purdy
Tangosol, Inc.
http://www.tangosol.com
+1.617.623.5782
WebLogic Consulting Available
"Per Lovdinger" <[email protected]> wrote in message
news:3a9a7650$[email protected]..
> Hi,
>
> I'm running a servlet and wants to open a URL for a file, how do I do that
>
> (To get the same effect as if I open the file from a browser)
>
> thanks in advance..
> ..Per
>
>
-
Opening a URL from a Java Program
Hi all,
Can I open Internet Explorer and invoke a URL from a Java Program. If it can be done, could someone please give a code for that.
Thanks in advance.Did you try it like "start \"http://java.sun.com\""
or maybe
"start 'http://java.sun.com'"I've no idea whether that will work, but it would be the first thing I'd try. -
How can I open a URL from a Custom Button in a second help window?
I have a custom button, which currently opens a URL in a web
browser, using a redirect page. How can I change this so that it
opens in a second help window instead? If I understand some of the
posts I've read, it is possible by linking the button to a related
topics function but I've no idea how this is done.
As usual, your help is most appreciated. Thanks a lot.Hi, ecoulyn,
You need to make a topic file like the one below the target
of the Jump button.
The onLoad function on the Body start-tag causes the Related
Topics command to fire when the topic file is loaded in the topic
pane. When specifying the file name of the topic to display in the
secondary window, you must always prepend it with the name of your
.chm file, followed by "::/". Otherwise, an error message appears
when the Jump button is clicked.
Pete -
How to open an URL from Forms in blocking mode?
Can anyone tell me if it is possible to open a website from within forms in blocking mode? The reason why I have to use blocking mode is that the user has to take some action in the website and has to end that session explicitly with a button on the website. After that, a file is written on the server that is needed for further action. Without that file the process can't go on.
I use Forms (32-bits) versie 10.1.2.0.2.Thanks for your answer.
Your suggestion is only possible with a timer-trigger (correct me if I'm wrong). And that's the point.... The time the user can act in the website is unlimited. So, how to set up a timer-trigger? Another work around is to make a process that works at some time and searches for the files on the server. But that's not what we want to do.
Does anyone have another idea? -
Opening files from InDesign CC in CS3
Hi all,
I have been using the wonderful InDesign CC on trial at work with the idea of purchasing it. On the 29th day of the trial someone in the office mentions we have CS3 on a laptop somewhere with all the correct licenses etc...
I have now successfully got this onto my PC, but now none of the files open as it says I am missing a whole list of plug ins and it suggests I upgrade... I dont want to upgrade as CS3 does everything I need it to at this point.
I have a copy of CS5 on my personal macbook. Can I open them in there and do something to the files so that they will open in CS3 on my PC or is there another way round it?You have to save any INDD file from CC in CC as IDML file.
Open that IDML file in InDesign CS4 version 6.x.
Save that IDML in InDesign CS4 again as INDD.
Export that file in InDesign CS4 as INX file.
Open that INX file in InDesign CS3 version 5.x.
Save that file in InDesign CS3 as INDD.
Realize that a lot has changed, and you have to make a bunch of work to correct these problems.
Have fun. -
to the forum:
I purchased a new MacBook (Leopard 10.5.2) about ten days ago; and at the same time InDesign CS3, which I installed on the MacBook.
I opened a simple CS document in CS3 and made a few modificationsagain simple. Then I saved the document in INX format to see if I could open that in CS (on a mac running OS 10.2.8.). No go: "This is not a valid InDesign Interchange document".
Is this possible, and if so, am I going about it in the right way? (I also want to be able to
start a new document in InDesign CS3 and save downwards to CS. My documents are text and diagrams, no color; the diagrams are created using only InDesign's drawing tools.)
Thank you,
Roger Purvesto everyone who replied so quickly:
It really helps to know that I can
run InDesign CS3 on two machines,
although it still means a fair
amount of effort on my part.
I try to stay far back
from the frontier as possible.
Why such timidity? Well
the new MacBook (10.5.2)
can't communicate with
my incredibly simple minded
network at home, based on
one (Apple) Airport Extreme
Base station. Many guests
using macs running versions
of Tiger, Panther, Jaguar have
been able to get on this network.
The lack of a modicum of backword
compatability in InDesign is a puzzle to me.
I know that defining "modicum" is not
obvious in this setting; but I think
I could make a reasonable case for
a particular definition. At any rate,
this (to me) shortcoming of InDesign
means more uninformative, fussy
work, far different in kind from the
pleasing (but demanding) effort of
trying to get things to look right on
the page.
Again, my thanks.
Roger Purves -
Opening a URL from an application
Hi everyone, am not quiet skilled with java but i would really appreciate your help with this, as i couldn't find a solution which made me doubt my whole basic knowledge of java. Now am doing this for my school project, it's a speech recognition application that will convert speech to text, there are 2 buttons in my interface, one "start" where you start speaking , the other one "stop" which would allow the engine to start processing the speech and converts it to text, it will then open a web page which in my case is a search engine(say google or yahoo) and searches for the matching documents of what has been spoken.
my problem is that i need to open that certain URL ( predefined) from a running application and not an applet, it hasn't worked for me, This is the only problem. is it possible ? please i need your help with this , i'd really appreciate it if someone would help ... thanks a lot for your time.hii guys am really sorry for the confusion ,the problem was actually with the java security poilcy not with the code as i thought.. i thought my code was wrong but it turned out to be correct.. here it is for anyone who's interested... but thanks anyway for everything... tc
Runtime rt = Runtime.getRuntime();
rt.exec("C:/Program Files/Internet Explorer/iexplore.exe http://www.google.com/search?hl=en&q=hi+my+name+is+omaya"); -
Downsaving from Indesign CS4 to CS3
We just got several new G5 iMacs and we put CS4 Design Premium on them. On the rest of our iMacs we have CS3 Design Premium. When we down save, the text comes out fine, but when saving files with pictures, the pictures do not show up when we open the INX file. Has anyone had this problem, or know a solution to it. Any help would be greatly appreciated. Thank you.
If you want people to have access to the image, you need to provide the images. Package the InDesign file, then export the INX. Also export a PDF so people can see what, if any, text reflow occurred or what CS4 features were lost in translation.
-
Middle mouse button in FF 4.0, Linux, does not open new url from clipboard
In new version FF 4.0 on Linux, middle mouse button doesn't open url (which is copy from clipboard in Linux style) without http:// prefix. It open url in format "http://www.mozilla.com" but doesn't open "www.mozilla.com". It works properly in previous versions FF.
And, wouldn't you know it, an hour after posting I found the simple solution...
Someone suggested that the Logitech RX300 mouse had a problem with mapping the middle (wheel) mouse button - try another one.
I tried 4 various mice - they all worked. The Logitech RX30x mice needs some adjustments.
Maybe you are looking for
-
Firmware Version 4.1.106.31982 of IomegaEZ MAL PERFORMANCE !!! and improve performance? I upgraded to version 4.1.106.31982 the IomegaEZ and enter SETUP MAL has PERFORMANCE WEB, it is very slow unlike the previous firmware version; as performance imp
-
I have changed from PC to an Imac and try to install the CD with Creative Suite6, design & web premium, Education Edition which I bought before the cloud appeared. I can't find the install.exe for mac on it, just for pc. What shall I do?
-
On the iTunes website, it says that to update your ipod to the iOS 4.3 update, you only have to plug it into the computer but, when I do, nothing happens. What is wrong?
-
I just finished a book and changed the fonts to fonts that are not used in any of the book themes. I saved a PDF copy of the book and the fonts look OK. Can I be sure that these fonts will appear OK in my ordered book? Thanks for any info on this. LH
-
Symbols generated when Caps Lock is in action
I am trying to figure out how keyboard layouts are defined (for Xorg). I more or less understand the formats of the /usr/share/X11/xkb/symbols/* files but the comportment of the Caps Lock key remain a mystery. How the symbols generated when the Caps