How do I use lingo script in director to open a pdf

I am trying to create a button that, when pressed, will open
a pdf file. I have scripted the button as follows
on mouse up me
open "flyer.pdf"
end
I have the flyer.pdf file in the root folder, but when I
publish the movie and try to test it, on a mac using OS X, it trys
to open clasic (I want it to open in OS X or higher), and on a PC,
it does nothing. One thing I noticed is that when the CD is put
into a PC, it drops the .pdf extention. What am I doing wrong? How
can I get this file to open on both a PC and a mac? If it is
something simple, can you write me a script that I can copy a paste
that will work? Thanks so much.
Andy

Hi Andy,
To open a file that needs another application, you need to
tell Director
what application to use. You can test to see what
applications the user
has that will show a .pdf and use the path to that file, or,
you can
install acrobat reader for each platform on your CD and then
use those,
or, you can use an Xtra that will find the application and
open the file.
Search this newsgroup for any or all of those solutions. You
will find
hundreds, maybe even thousands, of solutions.
Rob
Rob Dillon
Adobe Community Expert
http://www.ddg-designs.com
412-243-9119
http://www.macromedia.com/software/trial/

Similar Messages

  • How & where to use Java script to create new button in object detail page

    Hi All,
    I want to create "New/Add button" in object detail page. If i am not wrong i need to use java script for that but could you please let me know how & where to use Java script to create new button in object detail page in CRMOD.
    Thanks in advance.
    Regards,
    Manish

    Any related object on the detail page should have an "Add" or "New" or both buttons by default - This is vanilla functionality and will do the required action.
    If you want to modify this behaviour and do something tricky you will potentially have to go for javascript. You should add the javascript on a custom web tab on that Object.
    Admin --> Application Customization --> Contact -->Contact Web Applet
    Now, add your javascript in the code area, after you select the type = HTML for this web applet, expose this web applet on the Contact detail layout and your javascript will be invoked whenever this page is loaded.
    Check this online document to see how javascript can be embedded in CRM on Demand http://helponmyproject.com/TTOCOD/
    Cheers!
    Royston

  • Hi I would like to know, how do I add a Hyperlink on Flash, that opens a PDF in adobe reader and not the web browser.

    Hi I would like to know, how do I add a Hyperlink on Flash, that opens a PDF in adobe reader and not the web browser.

    Yoh, what is FSCCommanr ? sorry man I am an absolute beginner in Flash. I tried the code:
    /* Click to Go to Web Page
    Clicking on the specified symbol instance loads the URL in a new browser window.
    Instructions:
    1. Replace http://www.adobe.com with the desired URL address.
       Keep the quotation marks ("").
    instance_name_here.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
    function fl_ClickToGoToWebPage(event:MouseEvent):void {
      navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");
    this is the same code I used before and it opens a pdf file in a web browser, and it doesn't open an AutoCAD file.

  • How do you get Adobe Acrobat X Pro to open multiple pdf's in one window

    How do you get Adobe Acrobat X Pro to open multiple pdf's in one window
    I just got upgraded to Windows 7 64-bit and had to update to Acrobat X Pro.
    I was using Acrobat 8 Pro on my XP machine and this was nice since i usally have muliple files open at the same time

    Hi Richard,
    Due to technical limitations, MDI was dropped with the Acrobat 9 release:
    http://blogs.adobe.com/acrobat/mdi_vs_sdi_in_acrobat/
    -David

  • How to allow only the specified users/groups to open my pdf files...

    Hi there,
    I'm looking for resources/documents describing how to allow only the specified users/groups to open my pdf files by the Java API...
    I've found a sample code creating a policy in the following document.
    http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/wwhelp/wwhimpl/js/html/w whelp.htm?context=sdkHelp&topic=learn_lc_sdk_invokeremoting
    ( API Quick Starts (Code Examples) > Rights Management Service API Quick Starts > Quick Start: Creating a new policy using the Java API )
    But the sample code doesn't set recepients( users/groups ) who can open the pdf file.
    How can I make it ?
    Any samples ? or Does anybody can tell me which Java classes/methods I should use ??
    Policy#addPolicyEntry(PolicyEntry policyEntry) ??
    PolicyEntry#setPrincipal(Principal principal) ??
    or none of them ?
    Any hints are appreciated !
    Thanks.

    I'm not exactly sure what you are tying to do here, but typical approach when issuing one PDF par user/groups scenario goes like:
    1. Create policy for specific purpose and add principal (user/group)
    2. Apply policy on server side
    3. Deliver the file (via email etc...)
    If you are looking for sample codes, try quick start.
    http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/js/html/w whelp.htm?&accessible=true
    If you go "API Quick Start/Rights Management Service API Quick Starts", you might find something useful. I think you need "Creating Policies" or "Modifying Policies" for step 1 above, and "Applying Policies to PDF Documents" for step 2.
    Hope this helps.

  • I am using Adobe Pro 11 and on opening a pdf I am getting error 'Insufficient Data for an Image'. Please help and provide a workaround if the solution not there.

    Hi all,
    I am using Adobe Pro 11 and on opening a pdf I am getting error 'Insufficient Data for an Image'. Please help and provide a workaround if the solution not there.
    I have already set the preferences to for page view to low zoom settings, and page fit view settings, but it never opens the pdf. Please check and provide a solution asap.
    Thanks in advance!

    Most of the documents have sensitive info on them.  I will have to do some looking for some that i can share, but will get something to upload (dropbox) as soon as I can.
    Thanks for you help.

  • How do i make adobe reader my default to open any pdf file

    how do i make adobe reader my default to open any pdf file?

    What is your current default?  If Adobe Acrobat (X or XI), you can set it in your preferences.
    If it's another program, reinstalling or repairing Adobe Reader will set it to the default program.

  • How can I use a script in a Livecycle Designer form, to force display of text in Title Case?

    Hello,
    I am a 'novice' who is DIY'ing the construction of a dynamic pdf form, using Adobe Livecycle Designer 7 (I know, it's a VERY old version!)
    [So, any help that comes along must be 'for Idiots'!]
    I need to construct a code (Java script?) so that a few of my text-fields DISPLAY data in Title Case - IRRESPECTIVE of how the user types in the data.
    So, for example, in a "Address" text-field...
    If someone types in ..
    "205 sherborne avenue"
    - OR -
    "205 Sherborne avenue"
    - OR -
    "205 SHERBORNE AVENUE"...
    I need the data to be DISPLAYED ESSENTIALLY as...
    "205 Sherborne Avenue".
    I found the following code online, and tried it in the 'exit' event of the field I need to modify (with 'language' selected as JavaScript)...
    <   this.rawValue = this.rawValue.replace(/\b([a-z])/g, function (_, initial) {return initial.toUpperCase();});   >
    ... This did convert all the 'initial' letters of the words to Upper Case - AS LONG AS they were not ALL typed in Upper Case!
    So, that code worked for the first two of my samples for Sherborne Avenue above - but it did NOT work for the last one...
    That is, "205 SHERBORNE AVENUE" did NOT get converted to Title Case - which is what I need help with.
    Thanks in advance...

    Hey TundraSteve,
    Thanks a tonne!
    Works perfectly!!!
    In fact, your solution is so elegant and direct, that even I am beginning to get a sense of how it works... I have looked at LOTS of similar codes in the past few days, but was not at all getting a sense of how they are working! But comparing your solution with the earlier one I mentioned, I am beginning to get a sense of things!
    Any suggestions for what I should read-up in order to understand this king of coding?
    I have basically been using the built-in 'Help' - and, trial-and-error - and I have designed my first form - a pretty elaborate one, actually!
    So, it would be great if you could guide me through the 'learning curve' a bit!
    [I have figured-out the 'basics' - that is, I can lay out the form, use 'if-expressions' (FormCalc), trigger events, even build Subforms that are hidden but 'appear' when triggered by other actions, and so on. What I can't figure out are the various 'code languages' (syntax?) that are being used - like " var sometext", for eg.!]
    Cheers, and thanks again!

  • How create indesign using Java Script

    I am new in indesign and want to create indesign application using JavaScript.
    When i use AppleScript to create Indesign Application i use this statement
    tell application "Adobe InDesign CS5.5"
    set myDocument to make document with properties
    end tell
    Indesign Application create sucessfully.
    How create Indesign Application using JavaScript ?
    or what is equivelent statement of ( tell application "Adobe InDesign CS5.5" ) in Java Script.
    There are some java scripting example given on forum or in sdk.These all example start with app.
    when I debug these java script using ExtendScript ToolKit 3.6 It give error on app (undefined app).I think this app ia application object.
    How create  indesign application object  app in javascript ?
    While this script run sucessfully when i put these script in C:\Program Files\Adobe\Adobe InDesign CS5.5\Scripts
    and to run these script use Scripts panel (choose Window > Utilities > Scripts), then double-click the script name in the Scripts panel in indesign application.But In this case first i start indesign application and then choose Window > Utilities > Scripts then double-click the script name in the Scripts panel.
    I want to create Indesign Application (instance) using JavaScript.When I run or (debug) my JavaScript in any javaScript tool like ExtendScript ToolKit 3.6 then Indesign application should start, like in Apple Script.
    Thanks

    Thanks Vamitul for reply
    For example when i run SelectObjects.jsx An InDesign CS5.5 JavaScript in ESTK  then message prompt "Target Adove Indesign CS5.5 is not running. Do you want to lanch." Then on click yes Indesign application start.
    I want to Know how indesign object "app" is created to start Indesign application on click yes.
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/indesign/cs55-docs/In DesignScripting/InDesign-ScriptingTutorial.pdf
    Like in VB to create indesign object we use CreateObject("InDesign.Application"). In javascript how create object say "app" of InDesign Application.
    For example if  i write
    var myDocument = app.documents.add();
    var myTextFrame = myDocument.pages.item(0).textFrames.add();
    myTextFrame.geometricBounds = ["6p", "6p", "24p", "24p"];
    myTextFrame.contents = "Hello World!";
    in a simple text file and save it with .js extention and to open this double click on this  it give error undefined "app".
    Source :Microsoft JScript runtime error
    So how define "app" or create indesign object ?
    Thanks

  • How can I use a script to search for a list of filenames and copy them to another directory

    Hi all,
    I'm quite new to using scripts etc and wondered if anyone could help? I've only ever modified preset folder scripts so making one from scratch is a bit new to me, but it would also be great if anyone else has done this before if they could pass on there script and ill modify to suit my needs.
    I will be recieving a tab delimited file containing a list of 150 - 200 clips every day and I need to pull those files onto a hard drive.
    All of the files are housed in one folder on the internal media drive and I would like to be able to have applescript / automator / whatever  either look through the tab file and then move the files in the tab file from the internal media drive to the external transport drive or I copy and paste the filenames into the script and run it and the script moves the files from the internal media drive to the external transport drive.
    Hope someone can help,
    Many Thanks

    There are no other files in the source video root folder nor are there any folders within the subfolders.
    I have tested the script and the response I am getting is this....
    Could this be something to do with the {} on the set filestoMove command?
    In the replies box I get the following....
    tell current application
      read alias "Macintosh HD:Users:Ben:Desktop:Untitled.txt"
      --> "000004_1__4michaeljmcevoy_4iLlBuDjjG0"
    end tell
    tell application "System Events"
      count folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 10
      count item 1 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 1 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> ".DS_Store"
      count item 2 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 2 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000004"
      count item 3 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 3 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000005"
      count item 4 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 4 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000006"
      count item 5 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 5 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000007"
      count item 6 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 6 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000008"
      count item 7 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 7 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000009"
      count item 8 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 8 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000010"
      count item 9 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 9 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000011"
      count item 10 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 10 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000012"
    end tell
    tell application "Finder"
      -- 'core'\'clon'{ 'insh':'alis'($000000000152000200010C4D6163696E746F7368204844000000000000000000 000000000000CA40F7FC482B00000006AB3D06736F75726365000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000007FD33CAFABF2E0000000000000000FFFFFFFF000009200000000000000000000000000000 00074465736B746F7000001000080000CA40E9EC0000001100080000CAFABF2E00000001000C0006 AB3D0006AA9B0000BEEC000200284D6163696E746F73682048443A55736572733A0042656E3A0044 657…
      --> {}
    end tell
    Result:

  • How can I use iScroll script on iPad ?

    Hi,
    I'm trying to use this iScroll script to a simple horizontal scroll to the Stage, to be used on iPad, and I cant manage to make it scroll smoothly like it should here.
    Am I having something wrong ?
    I've added this script to CompositionReady :
    $.getScript("scripts/iscroll.js", function () {
              var myScroll;
              myScroll = new iScroll('Stage', { scrollX: true, scrollY: false, mouseWheel: true });
    thanks
    matt

    Upping this ...

  • How can I use bookmark script to deselct sidebar option by default?

    I am trying to include a User Friendly 1-Click link on my site to automatically bookmark a page.
    Using the Ultimate Bookmark script this works fine in IE, but when the bookmarking window pops up it always has the "Load this bookmark in the sidebar" option pre-checked by default.
    When testing the script I missed that point & took me quite a while to figure out what had gone wrong.
    The thing is that while I may be fairly Computer Savvy, it must be be assumed that the vast majority of the visitors to the site are not, so what I want is to be able to deselect the Sidebar option by default, allowing the user to select it, should they want it.
    Can I use a simple snippet of code in order to facilitate this?

    Those page javascripts for "Bookmark this Page" either don't work for Firefox or automatically "check" the "Load this bookmark in the Sidebar" in Firefox (and other Gecko based browsers). A Bug was filed 10 or 11 years ago to address that "Load ... bookmark ... Sidebar" issue, but it was closed with WONTFIX. The developers feel that "fixing" that feature might create a potential exploit for Firefox users.
    Best thing to do is under that "button" for other browsers, is put text along the lines of "Firefox users can Bookmark this Page using the Star or with Ctrl + D."

  • How can I use external tables with directories not on Oracle host?

    Oracle 11.2.0.2
    We have developers using C# to populate global temporary tables (two one header and detail with 1 to many relationbship between these two tables). The process of using C# was blowing up memory on Windows.
    As an alternative I requested them to create two CSV files and I can use sqlldr to load the detail CSV file of over 1 million rows under 15 seconds. It came to my mind that I could use external tables for this purpose with getting read of header and trailer from the CSV files.
    The issue I have is that I am not a DBA so I do not have access to OS host that Oracle instance is running. sqlldr is a client side tool, whereas external tables are server side. I was wondering if there is an alternative in 11g to use external tables without creating directories on the OS host that Oracle runs on? Are there other alternatives?
    Thanks

    905989 wrote:
    Oracle 11.2.0.2
    We have developers using C# to populate global temporary tables (two one header and detail with 1 to many relationbship between these two tables). The process of using C# was blowing up memory on Windows.
    As an alternative I requested them to create two CSV files and I can use sqlldr to load the detail CSV file of over 1 million rows under 15 seconds. It came to my mind that I could use external tables for this purpose with getting read of header and trailer from the CSV files.
    The issue I have is that I am not a DBA so I do not have access to OS host that Oracle instance is running. sqlldr is a client side tool, whereas external tables are server side. I was wondering if there is an alternative in 11g to use external tables without creating directories on the OS host that Oracle runs on? Are there other alternatives?
    Thanks
    no other alternative

  • How to create an Index using a script without having to open all the files using BOOK

    Can anyone help me with running a script without opening all the files?

    You cannot access the content of a file that is not open. Your script can open and close files in the background if it's written that way.

  • How do you use two scripts for a button?

    Hi all!
    I'm referring to my earlier question posted in this topic:
    Object not found with myContext.getParamIdForComponent
    In short: when I had the attribute 'jsObjectNeeded="true"'  on a button and that was for a script that would start a function validating a field, and then at the same time had a script in the button that would activate the "pressing" of it through the hit of the "return" button, I got javascript error saying "Error: Objekt doesn't support this property or method"
    Do you know a way to have both functionalitys connected to the button?
    Best regards
    Benny

    HI Benny Lange,
    <hbj: button
    id="Button1"
    text="Logon"
    width="125px"
    onClientClick="javascript func for validation"
    //first onClientClick will be executed
    onClick="call the method in JSPDYNPAGE"
    //second onclick will be executed
    disabled="false"
    design="STANDARD" />
    jsobjectneeded has nothing to do with onclick.this should work.post your code if you need help.
    Message was edited by: Kirupanand venkatapathi

Maybe you are looking for

  • How do you reset your restrictions password

    some how there is a restriction password that i dont how do i fix it

  • 2010 15" HiRes Anti-Glare video and photo viewing issues

    In January 2012 I bought my MBP through Apple's refurb dept. After some weird glitchy things, which a recent format may have fixed, and some overall speed issues that i cant figure out, my monitor seems to suck. Movies are WAY too dark, and while I c

  • Argh! iMovie HD keeps stalling/freezing ...

    I am trying to work on my movie, which is made up entirely of stills (from Photoshop, imported as JPEGS). I have had no problems up until today. Now the thing keeps freezing. I can edit the clips and everything in the timeline, but as soon as I try t

  • Lost ipad, find device not enabled

    Hi all, I have a question regarding my lost iPad. I've had a folowing scenario: a. Apple iPad Air with iOS 8. something b. Device was NOT passcode protected c. in iCloud settings, Find my iPad was turned OFF After device was lost I did followng steps

  • I'm getting forum emails even though I am not subscribed

    I susbscribe to messages that I post or that I have responded to, but suddenly, I'me getting every message that's posted to the Illustrator forum. Make it stop!