Re: script to make script
Re: script to make script
- Subject: Re: script to make script
- From: CYB <email@hidden>
- Date: Fri, 25 Feb 2011 18:59:00 -0600
- Thread-topic: script to make script
Title: Re: script to make script
Hi all,
with your help I now have a application made from a apple script that creates a application that creates a application. When I run the application to create a application it works but the apple script editor is started. The new application is created. How do I get the apple script editor to close? The script is below.
set theName to the text returned of (display dialog "enter the name" default answer "")
--set theName to "\"" & theName & "\""
set theNumber to the text returned of (display dialog "enter the phone number" default answer "")
set theNumber to "\"" & theNumber & "\""
tell application "AppleScript Editor"
set theDoc to make new document with properties {contents:"do shell script \"echo \\\"off\\\" > ~/.recording\"
do shell script \"echo " & theName & " > ~/Whistle/lastCalled\"
tell application \"Whistle\"
activate
set the clipboard to " & theNumber & " as text
tell application \"System Events\" to keystroke \"v\" using {command down}
delay 1
say \"Press enter to dial\"
end tell
"}
save theDoc as "application bundle" in file ((path to desktop as text) & theName & ".app")
say "The application " & theName & "has been created"
end tell
louie
email@hidden
Louie that is very simple just from your app write:
tell application “AppleScript Editor” to quit
Carlos Ysunza B.
_______________________________________________
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