A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: WIN-MAC installer

  1. #1
    Junior Member
    Join Date
    Jan 2004
    Posts
    4

    WIN-MAC installer

    hi guys I'm Stefano from Roma_Italia.
    I 'm writing to you because i've a problem with the stand-alone projector.First of all,forgive me my english....patatic.
    I'll try to be clear in my description.
    I have to create an installer in Flash for PC and Mac.This has to be able to launch an application,to read a PDF , and to load external SWF.Well in Win environment this is not a problem...but in Mac this is a drama!I know i've to use Applescript...but I don't know Applescript!I don't know nothing about Mac.
    That's all!
    Is there anybody listening?
    Can you help me?
    thanks a lot
    Stefano

  2. #2
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    Another FK user, nycomet has done exactly what you are trying to do. You can follow his progress, and see his final solution over in this thread.

  3. #3
    Junior Member
    Join Date
    Jan 2004
    Posts
    4
    I read that post but I'm just looking for a simple solution....I need only few lines of Applescript code,to launch an application...
    please give me a little-simple example!PLEASE!!!

  4. #4
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    Did you read this part of the thread?

    In case anyone is curious to see how an Applescript is used in fscommand to open files, here is a sample Applescript (which I named: "M001pdf_script" - which will open a pdf file in Acrobat Reader called: "M001.pdf")

    ======================
    tell application "Finder"
    activate
    select file "M001.pdf" of folder "PDF" of disk "Media Kit 2004"
    open selection
    end tell
    =======================

    Here is how we call the Applescript using fscommand applied to a button action:

    ===========================
    on (release) {
    fscommand ("exec", "M001pdf_script");
    }
    ===========================

    The Applescript file - which is created on a Mac using Script Editor - must be saved as an Application File (option off: stay open; option on: keep window closed). As far as I know. applescripts cannot be written on a PC. However, .bat files can be written on a Mac. Make sure you have a friend with a Mac if you wish to make dual platform CD-ROMs that are being designed on a PC.

  5. #5
    Junior Member
    Join Date
    Jan 2004
    Posts
    4
    i've read that section , and i've tried to use it too!!
    but it doesn't work with me!! I know to be a stupid , so i would make again the question!please give me an essential example...
    please!!
    again..
    I've to launch an EXE,a PDF,and SWF.That's all
    I would understand how to make this simple action in MAC.
    I don't know the Applescript synthax!!
    PLEASE!!!!!!!!!!!!!

  6. #6
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    select file "readme.pdf" of folder "PDF" of disk "Media Kit 2004"

    The part I've marked in bold is probably what's giving you trouble, it's targeting a disk with a specific name, in this case the name of the CD that nycomet burned, change that to the name of the CD that you are creating...

    Here's one source that explains that little snippet
    http://www.actionscript.org/forums/s...&threadid=5843

    and here's another method you can try that figures out where it is and launches the document found in the parent folder

    How do I open a document with an FSCommand
    http://www.flashkit.com/board/showth...eadid=396320#7

  7. #7
    Junior Member
    Join Date
    Jan 2004
    Posts
    4
    Hi Northcode!
    I MADE IT!!!!!!!!!!!!!!!!!!!!!!!
    thanks for your help
    ...a buon rendere!(it means that if you'll need something i'll be glad to help you!...do you know italian?)

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