• 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: Opening a document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening a document


  • Subject: Re: Opening a document
  • From: Christopher Stone <email@hidden>
  • Date: Mon, 03 Oct 2011 08:09:16 -0500

On Oct 02, 2011, at 20:13, DaveC wrote:
I open my mail program by double-clicking on the Settings file. I cannot open the mail program first as it wants to create a new settings file with defaults.

How can I open the Settings file by means akin to dragging and dropping the settings file onto the application? Or by double-clicking the Settings file?
______________________________________________________________________

Hey Dave,

It's germane to mention what email client you're using.  I'd guess Eudora, but there're one or two others that can use multiple settings files in similar fashion.

set settingsFile to alias "Path:To:Your:Settings:File"

tell application "Finder"
open settingsFile
end tell

Or more specifically and with error checking:

tell application "Finder"
try


open settingsFile using application file id "com.qualcomm.eudora"


on error errMsg number errNum
set {cr, sep} to {return, "------------------------------------------"}
set e to sep & cr & "Error: " & errMsg & cr & sep & cr & "Error Number: " & errNum & cr & sep
beep
display dialog e
end try
end tell

--
Best Regards,
Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Opening a document (From: DaveC <email@hidden>)

  • Prev by Date: Re: Opening a document
  • Next by Date: Re: Opening a document
  • Previous by thread: Re: Opening a document
  • Next by thread: Re: Opening a document
  • Index(es):
    • Date
    • Thread