• 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: How can i auto install App under ML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can i auto install App under ML


  • Subject: Re: How can i auto install App under ML
  • From: "L. Lee" <email@hidden>
  • Date: Sat, 27 Oct 2012 13:29:26 -0500
  • Thread-topic: How can i auto install App under ML

For my own benefit, I created an installer for Matt's Thucydides from an adaptation of the script posted by Brian. (I know there's more than one famous Matt on this list, but there is only one who authored Thucydides.) I figured I'd send the solution to the list, because why not?

Step 1. I used 10.8.2 Mountain Lion's AppleScript Editor to make an application from the script below.
Step 2. I downloaded Thucydides from http://allancraig.net/index.php?option=com_content&view=article&id=116 and expanded the zip archive.
Step 3. I put Thucydides.app into the package of the application created in step 1.
Step 4. Enter your admin password whenever the application is executed while Thucydides exists in the Applications folder.

-----

set p2cofme to path to me


try

set ptaf to path to applications folder

tell application "Finder"

activate

if exists file (ptaf & "Thucydides.app" as text) then move file (ptaf & "Thucydides.app" as text) to trash

set folderPath to p2cofme & "Thucydides.app" as text

duplicate (folderPath as alias) to ptaf

end tell

on error errmsg

display dialog errmsg

end try

-----

Laine Lee
 _______________________________________________
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: 
 >Re: How can i auto install App under ML (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Time anomaly
  • Next by Date: Re: Why does Smile need to startup other apps?
  • Previous by thread: Re: How can i auto install App under ML
  • Next by thread: set clipboard fails
  • Index(es):
    • Date
    • Thread