Re: Copyright Notice
Re: Copyright Notice
- Subject: Re: Copyright Notice
- From: Philip Aker <email@hidden>
- Date: Mon, 07 Jul 2008 19:01:10 -0700
On 08-07-07, at 16:18, Stan Cleveland wrote:
The 'NSAppleScriptEnabled' property tells the OS whether your application is scriptable, which it almost certainly is not.
AppleScript applets and droplets are scriptable -- just not in the same sense as Carbon or Cocoa applications because they don't normally support the "properties" call or the modern UI containership hierarchy -- so I wouldn't set the NSAppleScriptEnabled property value in them.
Here is the script of a stay open application:
property cd : missing value
on run theArgList set cd to (current date) as text end run
on doit() display dialog "The current date is: " & cd end doit
on idle return 1 end idle
############
Here's how I call its doit() handler from Script Editor:
tell application "Scriptable" to doit()
You can tell an AppleScript Studio application to do a lot of things but telling it to perform it's custom doit() handler directly is currently not a built-in capability.
Philip Aker
Democracy: Two wolves and a sheep voting on lunch. |
_______________________________________________
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