Re: Newbie blues (was Remove spaces)
Re: Newbie blues (was Remove spaces)
- Subject: Re: Newbie blues (was Remove spaces)
- From: Kai <email@hidden>
- Date: Sat, 28 Jun 2003 14:03:49 +0100
on Sat, 28 Jun 2003 07:43:47 +0200, Bernard Azancot wrote:
>
Great! No more error message.
>
Thanks Kai.
>
Now my script is
>
>
================================
>
>
tell window 1 of application "Tex-Edit Plus"
>
set nbr to words of "xx xx xx xx"
>
set AppleScript's text item delimiters to ""
>
set nbr to nbr as string
>
end tell
>
================================
>
>
It does *nothing*, but... does it very well ;-)
Well, it does *something* Bernard - though perhaps not necessarily what you
expected. :-)
>
Removing the spaces, would be my nExt goal.
That's what it does - but only in AppleScript. I imagine you really want to
do something similar in Tex-Edit Plus (although I'm not entirely sure what
your aim is). If you're trying to search and replace, for example, you could
do something like this:
--========================
set nbr to "xx xx xx xx"
tell application "Tex-Edit Plus"'s window 1 to replace looking for nbr
replacing with nbr's words as string
--========================
-------------------------------------------------------
(Any wrapped lines abutting the left edge of the window
should be reconnected to the end of the previous line)
-------------------------------------------------------
As I mentioned earlier, if you make sure you reset tids as soon as possible
after you change them from the 'default' {""}, it shouldn't (IMO) be
necessary to set them every time you coerce a list to a string. That's why
I've left out the 'set tids' in the above example.
>
Any help before suicide. ;-)
Steady boy - no call for such extreme measures just yet! ;-)
If I'm mistaken about what you're trying to do, just give us a little more
info and we'll see what we can do to help...
--
Kai
_______________________________________________
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.