Re: newbie text manipulation
Re: newbie text manipulation
- Subject: Re: newbie text manipulation
- From: Nigel Garvey <email@hidden>
- Date: Thu, 7 Jun 2001 00:20:17 +0100
Michelle Steiner wrote on Tue, 5 Jun 2001 23:58:25 -0700:
>
On 6/5/01 5:55 PM, email@hidden <email@hidden> wrote:
>
>
>tell application "Finder"
>
> activate
>
> set the clipboard to the time string of (current date)
>
>end tell
>
>
You don't need to tell the Finder; in fact, it's better not to tell the
>
Finder. It's an OSAX, and the Finder doesn't get involved at all with it.
And JollyRoger wrote on Wed, 06 Jun 2001 08:02:05 -0500
>
None of the commands you used belong to the Finder. Why do you feel the
>
need to put this into a Finder tell block and activate the Finder? Not to
>
mention if the Finder happens to be busy or something, this could cause your
>
script to pause while it waits on the Finder to respond. Not good.
>
>
All you need is this:
>
>
set the clipboard to the time string of (current date)
Whatever accesses the clipboard has to be the frontmost (active)
application. If you don't tell the Finder to activate and set the
clipboard, you should tell 'me' to activate - if you think I might not be
active at that particular juncture.
NG