On 11/16/03 1:06 AM, "Scott Haneda" <[EMAIL PROTECTED]> wrote:
> on 11/16/2003 01:00 AM, Paul Berkowitz at [EMAIL PROTECTED] wrote: > >>> >>> And do you know how to tell the finder to take a file and "open with:", with >>> this, I think we have a working script. >> >> Why the Finder? What the Finder got to do with anything? > > It is a folder action, so anything dropped into it is told to print, and I > am guessing, it will open in the default app that it wants to based on the > creator codes > > tell application "Finder" > --this prints the item(s) dropped into the drop box > print these_items > > So more something like, tell app finder, set these_items to this type and > code so they open in the correct app...?? You can do it through the Finder but it's perverse, and not necessary. Do that when you have an unscriptable application - then tell app "Finder" to print 'with properties' and hope for the best. But that's always going to give you the print dialog - you won't be able to circumvent it. Just use GC and forget the Finder. There's nothing about folder actions that forces you to use the Finder for everything - the Folder actions examples use the Finder to give you simple examples. The 'on open' handler takes a list of aliases (files) as its argument, and you don't need the Finder to handle them. GC can handle aliases, and a list of aliases, just fine. -- Paul Berkowitz MVP Entourage Entourage FAQ Page: http://www.entourage.mvps.org/toc.html PLEASE always state which version of Entourage you are using - 2001 or X. It's often impossible to answer your questions otherwise. -- To unsubscribe: <mailto:[EMAIL PROTECTED]> archives: <http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/> old-archive: <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>
