Re: Clipboard paste working under 10.4 not 10.3
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