Re: Distinguishing scriptlets for Apple Events
Re: Distinguishing scriptlets for Apple Events
- Subject: Re: Distinguishing scriptlets for Apple Events
- From: julifos <email@hidden>
- Date: Sat, 15 Mar 2003 10:07:22 +0100
>
My apologies if this issue is not germane to the list, but...
>
>
I'm trying to write a script to catch mailto: links when they are
>
clicked on and redirect the user to a web email client rather than a
>
conventional application. The script appears functional with an "on
>
<<event GURLMAIL>>" handler, but when compiled into a script
>
application the browser can never find it, even immediately after
>
setting the preferences. Instead, another script application is chosen,
>
more or less at random. In 9, you'd expect changing the creator to fix
>
the problem but, not surprisingly, this doesn't work in X. Putting the
>
script in a standalone Smile application produces similar results, the
>
browser just wants to use Smile itself instead. I'm in the mood to try
>
out Applescript Studio, and might unleash on this problem, but are
>
there any simpler solutions for tweaking a more conventional script
>
application to work?
>
>
Sincerely,
>
Joshua See
You can try changing all the necessary flags: creator, (you can delete both
FREF & BNDL) and "plst" (look for your app's "CFBundleSignature").
But I'm not sure you can handle a mailto with a "GURLMAIL". I think you
should use a standard "GURLGURL" event, which may be what your app will
receive "on clicked a mailto":
UNTESTED -->
on open location (this_mailto)
log this_mailto --> "
mailto:email@hidden"
End
JJ
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com
_______________________________________________
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.