Open an Applescript from Flash

Hello,
I woud like to know, how I can open an Applescript from
Flash. I have an Applescript to open a external document (pdf,
jpeg....) and it works when I open it. But I do a CDRom and I would
like to execute this script from Flash. I have put this in flash :
on (release) {
fscommand("exec", "apfichier.app");
but nothing happen. Thanks for your help, I'm
desperate....

You will have to use a third party tool. Flash cannot do this
alone.
Try FlashJester JStart which will allow you to open your
PowerPoint file.
Download a FREE evaluation copy and examples from
http://jstart.flashjester.com
Let us know if you have any questions.
Regards
FlashJester Support Team
e. - [email protected]
w. -
http://www.flashjester.com
There is a very fine line between "hobby" and
"mental illness."

Similar Messages

  • Open an Applescript with Flash

    Hello,
    I woud like to know, how I can open an Applescript from
    Flash. I have an Applescript to open a external document (pdf,
    jpeg....) and it works when I open it. But I do a CDRom and I would
    like to execute this script from Flash. I have put this in flash :
    on (release) {
    fscommand("exec", "apfichier.app");
    but nothing happen. Thanks for your help, I'm
    desperate....

    Hey charles!
    I'm getting there! I will have CS2 one day...for now, I'm doing well with what I have.
    I needed Aperture to retouch mass number of photos fast...then I so a little bit of this, a little bit of that in elements.
    It works for me for now.
    See ya!

  • Open an Applescript in Flash

    Hello, I have create an Applescript to open a file (pdf,
    jpeg...0 and it works when I execute the script on my Mac. But I
    would like to launch this script from Flash, because it's for a cd
    rom. I put :
    on (release) {
    fscommand("exec", "apfichier.app");

    rodnyc29 wrote:
    > Thanks for the reply,
    >
    > I think I did what you wrote but I get this error:
    > **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1:
    String literal was not
    > properly terminated
    > player.addEventListener("complete",function
    (event:Object) { trace("done
    >
    > **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2:
    ')' or ',' expected
    > Video");getURL("
    http://www.yahoo.com");});
    >
    > Total ActionScript Errors: 2 Reported Errors: 2
    >
    > Any ideas? Thanks
    The error says LINE 2, perhaps the browser formatted that
    into two lines.
    When you copy paste, make sure it's one line only.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Can't open ai doc from flash drive.

    Hello.
    I run CS3 on my Mac, but have CS4 running on a PC laptop. Last night, I was working on a few ai files that I originally created on my Mac (in CS3). I had no problems with the files and saved them all directly to my flash drive. When I tried to open the same files this morning from the flash drive on my Mac, I got the following message:  A file I/O error has occurred. Each ai file I worked on gave me the same error. (Incedentally, the InDesign files I used opened on the Mac just fine.)
    I have swapped platforms/versions before with no trouble. I back saved the ai files to CS3. I tried to open the files on the PC, but it wouldn't open on the PC either.
    I am not sure if I have an Illustrator problem, a flash drive problem or what? Also, I saved some of the ai files from the PC as eps files to the flash drive and they have seemed to disappear all-together. Maybe it is a PC thing? (I have very little experience with PCs)
    Help is desperatly needed. I hate to redo the artwork if I can help it. Naturally, I am under a deadline, so I may have to anyway, but I would like to prevent this from happening in the future.
    Thank you in advance for any help you may be able to offer.

    Thank you. I guess I learned a lesson. I just hate learning these things the "hard way."
    For some reason, when I tried (again) to open the files from the flash on the PC, the PC wanted to scan it for problems. I allowed it - thinking it might clean up anything that might be causing problems. Only it didn't help at all. In fact, it converted one of the ai files into a text file! Then, more of the files disappeared from the flash after the scan, though it didn't ask permission to delete any files.
    I am a Mac girl, so this kind of reinforces any prejudices I have had against PCs. In all of my years of using a Mac, never have files disappeared from my hard drive!
    If anyone has any great ideas as far as fixing the ai/text file, that would be great. Otherwise, I had better get busy re-creating all the art. I promise to be cautious using flash drives with ai files going forward.
    Thank you!

  • Opening a PDF from flash button

    Hi guys,
    I have not done this for a while and the old source files I got do not seem to work anymore in flash pro cs5. In the past I used ZINC and flash and these code lines:
    the link to the PDF is loaded from an XML:  " ... url="data\\presentations\\EN_Vienna_Opening_Session\\EN_JShepherd_Past&Present.pdf" ... "
    the link is then stored in a flash variabl:  " ... tPath = contentItems[0].childNodes[2].childNodes[3].attributes.url; ... "
    the PDF is then opened with ZINC with: " ... mdm.System.exec(mdm.Application.path+tPath); ... "
    I know this is not forum to support ZINC, but is there any other way of opening PDF files (so they open Acrobat outside FLash)?
    Thanks,
    Nik C

    Have you already tried adding
    htp.p('Content-Disposition:  attachment; filename...as described here?
    http://download.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32469/up_dn_files.htm#CIHDDJGF
    Maybe it solves the problem, in case IE is a little bit picky. But I really don't know.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Need to open word document from flash projector on Windows and Mac

    Hello,
    I'm creating a flash program that will be put on a dvd. And the dvd should function well on both windows and mac.
    I'm trying to open a word document on click of a button. I used geturl but it works only on windows but on mac it only opens a blank browser.
    This is urgent and would be really grateful if I get any help to resolve this problem
    Thanks,
    Sunira

    I kind of doubt you could get Safari to open MS Office files. Short of actually getting MS Office for the Mac, the most workable option might be to get NeoOffice/J (a Mac-friendly version of OpenOffice from http://www.planamesa.com/neojava/en/index.php. It won't display some Office files 100% correctly (depending on how complex they are) but it can open and save them.

  • Opening external pdf from flash exe

    I've looked around the site and I havent found anything
    refering to this.
    I'm creating an Interface in flash which will browse through
    a list of pdfs. This interface will be published on a CD-ROM for
    distribution.
    How do I launch the pdfs directly from a link in the flash
    exe? Since it is not playing within a browser I can't use getURL.
    It's been years since I've had to do this, and the last time
    I used the fsCommand to launch an exe file created in Director
    which would in turn open the pdf file. I'm hoping there is a better
    solution.
    Thanks for reading this!

    Try FlashJester JStart
    http://jstart.flashjester.com
    Download the an evaluation copy and try it yourself.
    Please look at the example files given.
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. - www.flashjester.com
    "This has been one of the most impressive and thoroughly
    pleasant
    experiences of customer support I have ever come across -
    astounding!"
    Director - hedgeapple

  • Open a  PDF from Flash projector file?

    Hi everyone,
    im using Flash CS4 slide presentation to make a education CD. In the end of the slides i want to open a pdf file.
    How can i do it? Is it a east way to do it?
    I publish the project as a projector file. I tested to use GetURL but the file wont open. I have the pdf-file
    in the same folder as the projector exe-file.
    The education will be distributed on CD-ROM.

    you need to adjust your flash player security settings:
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l

  • Opening a Folder from Flash Exe

    I am actually looking for a solution where in I can open a
    folder by clicking a button in my Flash executable file.
    E.g., I have 'dbs.exe' I have a button in this file linking
    to Windows folder. when this button is clicked it should open the
    'Windows' Folder. Is this possible? How do I do it?

    Yes its possible using JStart look at this example
    http://www.flashjester.com/?section=faq&cPath=28_41#349
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. - www.flashjester.com
    "This has been one of the most impressive and thoroughly
    pleasant
    experiences of customer support I have ever come across -
    astounding!"
    Director - hedgeapple

  • Opening Office Documents from Flash

    Hi, we're working with a product called ProForm to create online courses that are Flash-based.  It's a pretty cool product, created by Rapid Intake and using ActionScript 2 as the basis.
    In a recent course I've been running into a problem.  I've created a custom Flash movie as one of the "pages" in the course.  In that movie I have links that use the getURL function to connect to some local files, and target a new window with the "_blank" option.  I've used this method many times with no issues, and when working with PDFs (thanks, Adobe! ) it works just fine across all browsers tested.
    The problem we're seeing is that when we try to use this method to connect directly to Office documents, the links fail to open the documents in Internet Explorer.  When using Firefox, they work fine, and soon after clicking the link the user receives a dialog asking if they wish to save or open the document.  This is the behavior which we expected in IE, and which one can achieve by holding the CTRL button and clicking the link (and don't ask me how that was figured out, 'cuz I don't know).  But when just clicking the link in IE, a browser window briefly pops up, then the thing disappears and nothing else happens - no file opens, no dialog appears, nothing.  Very frustrating.
    So if anyone has any experience with this issue and can offer any advice, I'd really appreciate hearing about it.  While we can work around this (e.g. - converting Office docs to PDFs) it's not our first choice, and since none of our development team understands exactly what is happening and why, it would be useful for future development efforts for us to be educated.  Thanks in advance for any help.

    Just to try to help the comprehensibility of the issue, I've posted demo page to illustrate the situation: http://www.zoomiechaser.com/demo/button_test.html
    If you use IE and click on the link, the page will download as expected.  If you click the Click Me button in the Flash movie, you'll see either a pop-up warning bar, or, if you allow pop-ups, you'll see a window flash quickly on the screen then disappear.  I hope this helps, and that you kind souls can help me in return! 

  • Email opening from flash

    i want to open lotus notes from flash when user click on
    notefy button

    From a Projector file you can use FlashJester JStart
    http://jstart.flashjester.com
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. - www.flashjester.com
    "This has been one of the most impressive and thoroughly
    pleasant
    experiences of customer support I have ever come across -
    astounding!"
    Director - hedgeapple

  • Opening an HTML popup from Flash, not as tab

    Hi
    I need to open an HTML popup from Flash (using ActionScript in
    Flex 4).
    Thus far I found a solution, and it does work in Safari - a new
    and separate HTML window is popped up (with a new web page).
    private function popUpTheHtmlEditor():void {
      var url:String = "http://www.adobe.com";
      var request:URLRequest = new URLRequest(url);
      try {
        navigateToURL(request, '_blank');
      } catch (e:Error) {
        trace("Error occurred!");
    But in (my) Firefox (with my settings), when I click on the Flash
    (Flex) button, the page is being opened in a new tab.
    I need a solution which pops up the HTML page in a new/separate
    window, as far as possible regardless of the browser (and browser
    settings).
    I found an example where a popup is opened from HTML, and it opens a
    separate window (a real popup) in my Firefox:
    http://www.gtalbot.org/FirefoxSection/Popup/PopupAndFirefox.html
    -> "Open a requested popup"
    The JavaScript code seems to be:
      OpenRequestedPopup(this.href, this.target); return false;
    with this function def:
      function OpenRequestedPopup(strUrl, strTarget)
        if (WindowObjectReferenceOfRequestedPopup == null || WindowObjectReferenceOfRequestedPopup.closed)
        WindowObjectReferenceOfRequestedPopup = window.open(strUrl, strTarget, "top=" + windowTop + ",left=" + windowLeft + ",width=" + windowWidth + ",height=" + windowHeight + ",menubar,toolbar,location,resizable,scrollbars,status");
        else
        if(WindowObjectReferenceOfRequestedPopup.focus)
          WindowObjectReferenceOfRequestedPopup.focus();
    How could I call such code from ActionScript? Should this work through
    ExternalInterface? I couldn't even get this to work:
      ExternalInterface.call('alert', 'foo');
    Should I use swfobject.js for embedding the .swf in the HTML wrapper?
    Any other ideas?
    The two files are pasted below.
    Here's the compiler command I'm using:
      mxmlc -output button.swf -target-player 10.0.0 flash_to_editor.mxml
    I'm running the examples locally (as files, not over http). Would it
    help to place the files on a server?
    Tobi
    <?xml version="1.0" encoding="UTF-8"?>
    <mx:Application
      xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      horizontalAlign="center" verticalAlign="middle">
      <fx:Script>
        <![CDATA[
    import mx.controls.Alert;
    import flash.external.ExternalInterface;
    import flash.net.URLRequest;
    // This 'http://www.adobe.com' is just an example URL.
    // Works but opens tab in FF (not a separate window):
    private function popUpTheHtmlEditor():void {
      var url:String = "http://www.adobe.com";
      var request:URLRequest = new URLRequest(url);
      try {
        navigateToURL(request, '_blank');
      } catch (e:Error) {
        trace("Error occurred!");
    // Doesn't work:
    // var url:URLRequest = new URLRequest("javascript:alert('foo'); void(0);");
    // navigateToURL(url, "_self");
    // How to get this to work?
    private function popUpTheHtmlEditor():void {
      ExternalInterface.call('alert', 'foo');
    // How to get this to work?
    private function popUpTheHtmlEditor():void {
      ExternalInterface.call('launch','http://www.adobe.com');
      // Or
      // ExternalInterface.call("window.open", "http://www.adobe.com", "win", "height=200,width=300,toolbar=no,scrollbars=yes");
    // Perhaps it's necessary to try different approaches:
    // (As soon as I get two approaches to work.)
    private function popUpTheHtmlEditor():void {
      var s:String;
      if (ExternalInterface.available) {
        // Necessary? Safe?:
        // Security.allowDomain('*');
        s = ExternalInterface.call('launch','http://www.adobe.com');
      } else {
         // TODO: Then try URLRequest?
         s = "Wrapper not available";
      Alert.show(s);
        ]]>
      </fx:Script>
      <s:Panel title="One way to open the HTML editor"
      width="75%" height="75%">
        <s:Button id="button" label="Open the HTML editor"
        click="this.popUpTheHtmlEditor();"
        horizontalCenter="0" verticalCenter="0"/>
      </s:Panel>
    </mx:Application>
    <html
      xmlns="http://www.w3.org/1999/xhtml"
      xml:lang="en" lang="en">
      <head>
        <title>html_around_swf.html</title>
        <script type="text/javascript">
    function launch(url) {
      alert(url);
      //  OpenWin = this.open(url, "FOO", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=400,height=200");
        </script>
      </head>
      <body>
        <object id="button" name="button" width="550" height="400"
        classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
          <param name="movie" value="button.swf" />
          <param name="allowScriptAccess" value="always" />
          <embed id="foo" name="button" src="button.swf" width="550" height="400"></embed>
        </object>
      </body>
    </html>

    Hi, 
    Here's a solution.
    1. Make ExternalInterface work when files are loaded as local files: 
    Go to
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l 
    In tab Global Security Settings: Edit Locations -> Add Location ->
    browse to the .swf file, add it. Make sure it's in the list (under the
    Edit Locations drop down, with a green check mark.) 
    Now open the HTML wrapper in a browser (eg Firefox). 
    Now this works (ActionScript): 
    private function popUpTheHtmlEditor():void {
      ExternalInterface.call('alert', 'foo');
    On Windows: perhaps:
    http://techjig.blogspot.com/2008/03/flash-global-security-settings-windows.html
    "In order for external interface functions to be called, you must also
    specify the folder/file where the swf file is located." 
    The above setup isn't necessary when the files are on a server. 
    Also see: 
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/External Interface.html#call()
    ""ExternalInterface" "
    "call() method" 
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ea6.html
    "About ExternalInterface API security in Flex" 
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf626ae-7fe8.html#WS2d b454920e96a9e51e63e3d11c0bf69084-7f31
    "Using the ExternalInterface API to access JavaScript" 
    2. Open a real popup: Example: 
    ActionScript: 
    private function popUpSomething():void {
      var editorPathOrUrl:String =
        'wrapper.html';
      var windowName:String =
        "SomeNameSeeDocs";
      var windowFeatures:String =
        "toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,width=500,height=700";
      ExternalInterface.call(
        'launch',editorPathOrUrl,windowName,windowFeatures
    JavaScript: 
    function launch(editorPathOrUrl,windowName,windowFeatures) {
      windowRef = window.open(
        editorPathOrUrl,windowName,windowFeatures
    Works in all browser I tested except Opera. 
    Tobi

  • Opening a new browser window from flash

    Does anyone know of a method fo opening a link in a new
    window in firefox from within flash that isn't blocked by the popup
    blocker. It seems like the security in FF 2.0.0.6 (I'm on 2.0.0.11)
    has been tightened to prevent any _blank or window.open calls from
    flash getting through. I've tried the standard getURL, fscommand
    and ExternalInterface call to a javascript window.open method.
    Nothing now works.
    I understand the need for the popup blockers, but this is a
    legitimate popup only invoked on user interaction (click) - the
    same window.open call in an onClick event outside of flash works
    fine and I guess it is blocked from within flash because there is
    no way of knowing if the call is invoked from user interaction or
    automatically - but seems a shame.
    So any other way of getting a new browser window to open from
    within flash in firefox?

    Use target="_blank" in your form declaration.<FORM METHOD=POST ACTION="someAction" TARGET="_blank">The _blank keyword tells the browser to load the results in a new window.
    If you need more control over your window (size, address bar, etc.) you'll need to use javascript.<SCRIPT>
    function submitForm(windowName){
       newWin = window.open("",windowName, "menubar=no,resizable=no,...");
       document.myForm.target = windowName;
       document.myForm.submit();
    </SCRIPT>
    <FORM NAME="myForm" METHOD=POST ACTION="some.jsp" TARGET="">
    <INPUT TYPE=BUTTON VALUE="Submit" onclick="submitForm();">
    </FORM>

  • How do I open a new browser window from Flash

    I wish to open a new browser window from Flash and when the new window closes to return to the location from whence I started.
    ThomasChen

    The command to open a new window would be the "_blank" part of a command to link to a web page in the code below.
    navigateToURL(new URLRequest("http://www.anothersite.com", "_blank"));
    As far as the new window closing and getting back to where you were in the original window, I don't understand where that original window might have gone to... You should be wherever you last left it.

  • Open PDF from flash

    I want to open pdf files from buttons, the structure of my
    project is this:
    one windows project (exe) called Intro (this is only a
    presentation) a has one button linked to a .swf file where are the
    buttons, I know that i can not open pdf files from this buttons,
    What solutions I have? two question more, can insert one fscommand
    folder into the other fscommand folder?. how make a bat file and
    how insert the command into the bat file?
    This is for a Multimedia CD
    Text
    Text
    my mail

    Don't think you can do this directly, as far as I know
    (correct me if I'm wrong anyone) you can use fscommand to launch
    applications but not specific files. I have done it in the past by
    launching an app written in Applescript that in turn opens a
    specific file, obviously this is mac specific but the same can be
    achieved on a windows machine using a .bat file (I think).
    I would be more specific but it was ages that I did it and I
    can't find the project now.

Maybe you are looking for

  • Olympus Raw files

    Need Help. I've purchased a new Olympus E 620 camera and have the Ps /Cs3 design suite, now 18months old . I am unable to import camera raw images via bridge or directly into Ps 3 using any of the camera Raw 5.4 or DNG plug-ins. Can I purchase an upg

  • IS CLIP supported by Xilinx Spartan3E driver for LabVIEW 8.6?

    IS CLIP supported by Xilinx Spartan3E driver for LabVIEW 8.6? For HDL interface node, the enable chain and multi clock domain is difficult to understand Solved! Go to Solution.

  • Exporting to flash.... projector?

    The end result of my keynote slideshow is to have it burned on a CD and be able to be opened without needing FlashPlayer or Keynote. 1) Is there a way to export it as a flash projector file? 2) Is there a simple way that anyone of you know to convert

  • Home screen: broken images view

    Hi Please help me, i am using Nokia 701, when i am changing home screen wallpaper, it's take times to load, because of some broken images,  but in my gallery not showing anything like that as broken images. what's the problem? how can i solve it? tha

  • CreateManagedConnection Error messaging bridge MQ

    Hi all,           I've successfuly set up a messaging bridge between 2 Weblogic queues, but I           get the following when setting up an MQSeries queue as source and WL queue           as target:           javax.resource.spi.ResourceAllocationExc