Re: scripting Word top copy text - should be simple, but ain't
Re: scripting Word top copy text - should be simple, but ain't
- Subject: Re: scripting Word top copy text - should be simple, but ain't
- From: "Charles Arthur, UKClimbing Editor" <email@hidden>
- Date: Thu, 27 Apr 2006 22:30:28 +0100
Emmanuel <email@hidden> wrote:
>It would certainly be cool that all applications do like Smile does,
>that is, having their "open" command return a reference to the newly
>opened object (or whatever makes sense in the particular context),
Not just cool - totally sensible. After all, when one opens something, it
tends to be with a purpose - whether it's a file, a cupboard or a bank
account. Having a way to identify uniquely the thing you've opened is
helpful in all of those cases. With the smart-arsedness of hindsight, it's
clear that it would have been sensible for "open" to have had an obligatory
AEvent returned in any app with any sort of dictionary.
>but I don't think anything prevents a programmer from having his
>"open" command return whatever he decides.
It's still a touch surprising that an organisation that produces a product
with an AS dictionary as enormous as Microsoft and Word doesn't favour the
scripter with a way to directly connect to the object they've tried to
open. Want to script "append to spike ("Deletes the specified range and
adds the contents of the range to the Spike which is a built-in autotext
entry")? You can. Want to get at the file you just opened? Ummm..
Charles
--
http://www.ukclimbing.com : 1,000+ British crags, 350+ British climbing walls
- searchable by distance rock type, etc, with 5-day weather forecasts for
every one - plus maps, articles, news, and the New Routes database. There's
even a cool shop attached...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden