I was wondering, how do I call an applescript from a widget?
I’ve been trying to do this but nothing I’ve read so far has worked.
I was wondering, how do I call an applescript from a widget?
I’ve been trying to do this but nothing I’ve read so far has worked.
A widget is an applescript you run from a the internet right?
To tell you the truth, there is no easy way to run a script from a link or whatever because of security reasons. So, you need to give more information on what you want to do.
gl,
Well, I don’t know exactly what I want to do yet. But I do want to make a widget that actually does something, and surely some of those don’t use purely HTML and javascript…
I’ve seen plenty of widgets that “actually do something” with just HTML and Javascript.
I think you would use the osascript
command line utility to run an AppleScript file.
See also:
Dashboard Programming Topics: Accessing Command Line Utilities
I haven’t built a widget as yet, and haven’t tested Missing Link in a widget, but Missing Link can call an AS application from HTML in a browser…
http://scriptbuilders.net/files/missinglink2.3b.html
–
With any luck, the next update to ML will be able to run compiled scripts (not just script applications) from links.
Peter B.