• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Need Help with a command to open a DMG file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need Help with a command to open a DMG file


  • Subject: Re: Need Help with a command to open a DMG file
  • From: David Crowe <email@hidden>
  • Date: Fri, 14 Feb 2003 16:01:02 -0700

[Previously posted with wrong subject line]

Jeff;


I have written the following script to mount a .dmg file, wait for it to be mounted, and then open an application (Oxford English Dictionary) that uses it:

tell application "Finder"
if not (exists disk "OED2") then
open file "OED2.dmg" of folder "OED2 (vs.1.0d)" of folder "Applications (Mac OS 9)" of startup disk using ":Applications:Utilities:Disk Copy"
set i to 1
repeat while not (exists disk "OED2") and i < 100
delay 1
set i to i + 1
end repeat
end if
open application file id "JAAP"
end tell

I'm sure you could adapt this for your requirements.

- David Crowe
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: System Events app in 10.2.4
  • Next by Date: Re: posix path conversion
  • Previous by thread: Re: Need Help with a command to open a DMG file
  • Next by thread: Importing Data from Excel to Filemaker
  • Index(es):
    • Date
    • Thread