• 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
script to make script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

script to make script


  • Subject: script to make script
  • From: louie <email@hidden>
  • Date: Fri, 25 Feb 2011 11:56:57 -0800

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



 _______________________________________________
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

  • Follow-Ups:
    • Re: script to make script
      • From: CYB <email@hidden>
  • Prev by Date: Re: A problem
  • Next by Date: Re: AppleScript-Users Digest, Vol 8, Issue 106
  • Previous by thread: Re: A problem
  • Next by thread: Re: script to make script
  • Index(es):
    • Date
    • Thread