Re: Quark 6.5 Insert text into insertion point Broken?
Re: Quark 6.5 Insert text into insertion point Broken?
- Subject: Re: Quark 6.5 Insert text into insertion point Broken?
- From: Jason Bourque <email@hidden>
- Date: Wed, 16 Feb 2005 08:40:23 -0500
Hans,
This puts the special character at the beginning of the text box not where
the insertion point is. I don't have any thing selected. Thanks for the
help.
set vSpecialCharList to {"° = Degrees", "† = Cross", "\" = Inch Mark", "¢=
Cents"}
tell application (path to frontmost application as text)
choose from list vSpecialCharList default items (item 1 of
vSpecialCharList) without multiple selections allowed
set vSpecialCharacter to result
end tell
if vSpecialCharacter is false then
return
else
set vSpecialCharacter to item 1 of vSpecialCharacter
set vSpecialCharacter to character 1 of vSpecialCharacter
end if
tell application "QuarkXPress 6.5"
-- activate
tell document 1
set text of selection to vSpecialCharacter
end tell
end tell
Thanks,
Jason Bourque
On 2/16/05 2:10 AM, "Hans Haesler" <email@hidden> wrote:
> On Tue, 15 Feb 2005, Jason Bourque wrote:
>
>> I have tried a few different ways to insert text into an insertion point.
>> Between two characters. But nothing works.
>>
>> make new text at insertion point with vSpecialCharacter
>>
>> make new text at selection with properties
>> {contents:vSpecialCharacter}
>>
>> Any ideas?
>
> Yes. :-)
> ---
> set vSpecialCharacter to "J"
> tell document 1 of application "QuarkXPress 6.5"
> set contents of selection to vSpecialCharacter
> end tell
> ---
>
> Hans Haesler <email@hidden>
>
>
> _______________________________________________
> 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
_______________________________________________
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