• 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: Clipboard paste working under 10.4 not 10.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clipboard paste working under 10.4 not 10.3


  • Subject: Re: Clipboard paste working under 10.4 not 10.3
  • From: Brett Conlon <email@hidden>
  • Date: Mon, 10 Apr 2006 13:56:53 +1000


OK, I have it working using the following code:

set the clipboard to PDFName
set the clipboard to «class ktxt» of ((the clipboard as text) as record)

Not sure if this is the best way to go about it but from a MacOSXHint page it says it's stripping out all formatting.

Is there a simpler or better way?

Cheers,

Coj



Brett Conlon <email@hidden>

G'day all,


The following code is working fine on my Mac under 10.4 but on the two 10.3.9 Macs I tested it on in the studio it pastes what appears to be a space.


tell
application "QuarkXPress"
               activate

               tell
project 1
                       
set QXLayoutName to name of active layout space
                       
set QXProjName to name
               
end tell
               
if QXLayoutName contains "Layout" then
                       
set QXDocName to QXProjName
               
else
                       
set QXDocName to QXLayoutName
               
end if
               
set PDFName to text returned of (display dialog "Please name your PDF" default answer QXDocName)
               set the clipboard to PDFName


Later, as part of UI scripting to save the PDF I have the below command paste the results into the Save dialog:


keystroke "v" using {command down} --
Paste PDF name

Any thoughts?


Cheers,


Cojcolds

 _______________________________________________
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: Clipboard paste working under 10.4 not 10.3
      • From: kai <email@hidden>
References: 
 >Clipboard paste working under 10.4 not 10.3 (From: Brett Conlon <email@hidden>)

  • Prev by Date: Re: Store script as run only
  • Next by Date: Re: Store script as run only
  • Previous by thread: Clipboard paste working under 10.4 not 10.3
  • Next by thread: Re: Clipboard paste working under 10.4 not 10.3
  • Index(es):
    • Date
    • Thread