dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: applescript

  1. #1
    Senior Member
    Join Date
    Mar 2006
    Posts
    139

    applescript

    im making a hybrid cd with a GUI which has several buttons to open pdfs in acrobat.
    the pc version uses .bat files to open the pdfs and the mac version calls applescript files to open them. super.

    only problem im having is when the applescript opens the pdfs it also opens the folders containing the pdfs over the top of the interface...

    applescript:

    tell application "Finder"
    activate
    select file "airodekeuro.pdf" of folder "fscommand" of disk "mydisk"
    open selection
    end tell


    can i modify this to close the windows containing the pdfs, or not to open the windows at all and just open the pdf?

    cheers for any help!

    ps, sorry for the double post, was in wrong forum...

  2. #2
    Tim (Super Moderator) Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    I think you can do this, but I haven't tested it...

    Code:
    tell application "Finder"
       open file "airodekeuro.pdf" of folder "fscommand" of disk "mydisk"
    end tell

  3. #3
    Senior Member
    Join Date
    Mar 2006
    Posts
    139
    thanks!

    will give it a go.

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