dcsimg
A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Running an exe file from a Mac projector

  1. #1
    Junior Member
    Join Date
    May 2001
    Posts
    22
    I'm trying to link to an exe file which is NOT in the same directory as the projector file.

    This syntax works for Windows, but not for macintosh:

    on (release) {
    fscommand ("exec", "software\\star_office51\\documentation\\starsetup .EXE");
    }

  2. #2
    Senior Member
    Join Date
    Mar 2000
    Location
    London
    Posts
    961
    EXE files are PC applications - they cannot run on a Mac. So even if you could link to it it would not work...

  3. #3
    Senior Member zeb's Avatar
    Join Date
    Oct 2000
    Posts
    129
    maybe you want to solve your problem too...

    So, you have to export too your file as a Mac projector.
    But, on a Mac, you can't tell to a projector to open another projector...
    With the FS command you have to open an applescript that will open your projector.

    The Applescript will look like that :

    tell application "Finder"
    activate
    select file "file name" of folder "folder name"
    open selection
    end tell
    Or if the file is on a CD, It will looks like that :

    tell application "Finder"
    activate
    select file "file name" of disk "disk name"
    open selection
    end tell

    Ok, hope it helps...

    Tchao,
    Zeb


  4. #4
    Senior Member SJT's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    2,563
    Not quite sure why you're trying to run a star office installer on a mac anyway, Star Office hasn't been compiled for macintosh; neither OS 9 or OS X, so even if the installer could run (it can't) it couldn't install anything that works on macs...sorry

  5. #5
    Senior Member zeb's Avatar
    Join Date
    Oct 2000
    Posts
    129
    woowwww... You're totally right SJT ! I didn't even notice that It was an installer !!!

    I'm stupid or what ?

    Fortunately there isn't Star-office for mac... It's not so great, even if It's cheaper than Products from Microsoft...

    See ya everybody...
    Zeb

  6. #6
    Junior Member
    Join Date
    May 2001
    Posts
    22

    Using the FS command EXEC in Mac Flash player

    Sorry - I should have been more specific, and should not have used the star office example.

    I'm referring to the FS command "EXEC" in Flash player for Mac. I know it works because I've used it to initiate several installers, eg. Stuffit, Eudora, Netscape. My problem is that all of these installation files are currently in the same directory as my Flash projector.

    I'm trying to figure out a way of executing these installers when they are located in sub-folders (not in same folder as the flash player).

  7. #7
    Senior Member zeb's Avatar
    Join Date
    Oct 2000
    Posts
    129

    Hmmmm...

    So, you can use the applescript way... It works...
    And if you're quite good on programming applescript (sorry, I'm not...), you'll be able to do a lot of stuff...

    Tchao,
    Zeb

  8. #8
    Senior Member SJT's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    2,563
    I think it must be the slashes, they're the wrong way round.
    You can put them the other way and it will still work on a pc this piece of code works fine on a pc for me;

    function openFile (fileToOpen) {
    fscommand ("exec", "Data/ftoolapp.exe");
    }

    macs will understand forward slashes as specifying a url so it should work on them, they don't understand \ as a path delimiter.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center