Re: How can i auto install App under ML
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 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