Applescript bundle droplet problems
Applescript bundle droplet problems
- Subject: Applescript bundle droplet problems
- From: Brennan <email@hidden>
- Date: Fri, 14 May 2004 00:08:28 +0200
I've made an Applescript bundle containing a UNIX executable. I'm very
excited by this easy way of extending Applescript (or wrapping UNIX,
depending on your perspective).
I wouldn't know where to start to write an OSAX or a scriptable
application, but this way I can throw some simple C code together and wrap
it in a bundle, using Applescript to handle the Finder's file IO stuff.
Super!
But there are problems.
My bundle has an 'open' handler, so it also functions as a droplet. Sort
of.
If you drop multiple files on the application bundle, the droplet only
processes the last file.
I thought that each call to 'do shell script' would start a new shell
instance, but it seems to interrupt the previous call or something.
Should I use an idle event to iterate through the dropped files, instead
of a repeat loop?
I'm also getting a kind of startup screen, even though I do not check the
'startup screen' box. Actually, this screen seems to tell me what went on
as a *result* of the 'do shell script' call. How do I stop this from
appearing?
Finally, and least important : I would like to give it a custom icon. I've
made an .icns file in Icon Composer, but when I save it in the bundle's
resources folder, nothing seems to happen.
Brennan
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.