A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 23 of 23

Thread: Help opening a pdf with a projector mac-pc

  1. #21
    Junior Member
    Join Date
    Apr 2008
    Posts
    1
    hi

    the applescript of kelvan works very well, but the link from the swf or mac projector doesn´t works: when I click the button, nothing happens.

    can anybody help me?

  2. #22
    Junior Member
    Join Date
    May 2009
    Posts
    1
    Quote Originally Posted by kelvan View Post
    thanks

    this is what worked for me. I had figured it out before getting this response. i wanted to post it for others references:

    heres my applescript.

    tell application "Finder"
    activate
    select file "file.pdf" of folder "test"
    open selection
    end tell

    heres the button comand for the projector:

    on (release) {
    fscommand ("exec", "open");

    hopefully this of use to anyone interested. Please email if there are any questions.

    thanks again for all the help.
    Hi and thanks for the info.
    The applescript, does it have to be named "open.app" then or something?
    Because I don't see how fscommand ("exec", "open") knows what file to open.

    And is there another way needed to do this on a linux platform ?
    Or will it work just as well ?

    thanks in advance

  3. #23
    Junior Member
    Join Date
    Oct 2009
    Posts
    12
    Hey guys I have been trying the suggestions everyone has been posting here for hours and cant get this pdf to open.

    You can see how I have everything set up in the image below


    And here is all the code:

    BUTTON:


    on (release) {
    fscommand ("exec", "open");
    }


    applescript:


    tell application "Finder"
    activate
    select file "ym.pdf" of folder "test"
    open selection
    end tell

    Anyone know whats going on?

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