• 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: Quark 6.5 Insert text into insertion point Broken?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Quark 6.5 Insert text into insertion point Broken?
      • From: Hans Haesler <email@hidden>
References: 
 >Re: Quark 6.5 Insert text into insertion point Broken? (From: Hans Haesler <email@hidden>)

  • Prev by Date: do shell script without blocking?
  • Next by Date: Re: do shell script without blocking?
  • Previous by thread: Re: Quark 6.5 Insert text into insertion point Broken?
  • Next by thread: Re: Quark 6.5 Insert text into insertion point Broken?
  • Index(es):
    • Date
    • Thread