• 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
Re: Copyright Notice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
echo email@hidden@nl | tr a-z@. p-za-o.@

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

References: 
 >Re: Copyright Notice (From: Stan Cleveland <email@hidden>)

  • Prev by Date: Re: Copyright Notice
  • Next by Date: Re: Find script files
  • Previous by thread: Re: Copyright Notice
  • Next by thread: Re: Copyright Notice
  • Index(es):
    • Date
    • Thread