Here we go again on Launch

Dan Friedman dan at clearvisiontech.com
Sun May 11 12:38:01 EDT 2003


Roger,

In this sample, I don't use the launch command to open a file in another
application.  I use appleScript to do it.  In the following example,
openThisFile is the full path to the file you want to open.  The OS will
open the correct application for you.  For this functionality, you don't
need the launch command.


On openAExtFile openThisFile
  --MAC ONLY!
  replace "/" with ":" in openThisPDF
  delete char 1 of openThisPDF
  put "tell application" && quote & "Finder" & quote & cr & "open file" &&
quote & openThisFile & quote & cr & "end tell" into appleScriptMessage

  do appleScriptMessage as appleScript
End openAExtFile

Hope that helps...
-Dan




More information about the use-livecode mailing list