• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: newbie text manipulation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Deleting Folders
  • Next by Date: Re: text manipulation
  • Previous by thread: Re: newbie text manipulation
  • Next by thread: Open a text file with Eudora
  • Index(es):
    • Date
    • Thread