Re: creating a dictionary for an applescript app?
Re: creating a dictionary for an applescript app?
- Subject: Re: creating a dictionary for an applescript app?
- From: Luther Fuller <email@hidden>
- Date: Tue, 19 Jun 2007 09:43:47 -0500
It's easy to access any handler in any AppleScripted application, but
I'm not sure if it complies with your last paragraph. (In other
words, it may not work for you.) But the explanation is short, so
here goes ...
Write and save an application with this handler ...
on beeper(n)
tell application "Finder" to beep n
return "done"
end beeper
I named this example "beepThisMany" and no, there isn't a run
handler, but there could be.
Write this code in Smile or Script Editor and run it (no need to
save) ...
on run
launch application "beepThisMany" -- opens without running
tell application "beepThisMany"
beeper(7)
end tell
display dialog the result
end run
On Jun 18, 2007, at 6:43 PM, tom wible wrote:
i'm trying to access a function in an applescript.app i've
written...in applescript it's:
tell application "playRec"
initRecList(false)
set recList to listRecDict() -- returns a list of records
end tell
but i want to do it in py-appscript (so i can use cheetah) but
ASTranslate errors: Untranslated event 'ascrpsbr'
i've set NSAppleScriptEnabled in my app's info.plist, and created
an sdef as suggested in http://lists.apple.com/archives/applescript-
implementors/2004/Feb/msg00028.html
but i've not found any docs showing how to link the sdef to my
applescript...
_______________________________________________
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