Re: Help..
Re: Help..
- Subject: Re: Help..
- From: Andrew Oliver <email@hidden>
- Date: Wed, 19 Mar 2003 15:30:53 -0800
On 3/19/03 10:26 AM, "Yossie Silverman" <email@hidden> wrote:
>
I need a minimal script that will do the following:
>
>
1) figure out where it is located in the filesystem (as a run-only
>
script).
path to me
>
2) based on that, construct a path to a shell script and 'do shell
>
script' it.
Assuming the script name is "scriptname", this will run the script
scriptname in the same directory as the AppleScript.
set {oldDelims, AppleScript's text item delimiters} to [NOBREAK]
{AppleScript's text item delimiters, ":"}
set myPath to text items 1 through -2 of (path to me as string) as string
set AppleScript's text item delimiters to oldDelims
do shell script quoted form of (POSIX path of myPath & "/scriptname")
>
3) How would I "glue" an icon to it from a Installer shell script?
Glue an icon to what?
>
Also, how would I create an alias to it on the Desktop?
This code snippet will make an alias of the Safari app on the user's desktop
set theDesktop to path to desktop
tell application "Finder"
make new alias file at theDesktop to alias "Macintosh [NOBREAK]
HD:Applications:Safari.app:"
end tell
_______________________________________________
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.
References: | |
| >Help.. (From: Yossie Silverman <email@hidden>) |