Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

illustrator code problem



G'day all

I've written a Studio app under Leopard with Xcode 3.0, and it works fine.

It has to run on a Tiger intel machine however, so I've downloaded Xcode 2.5 and re-built the App.

Unfortunately 5 lines of code that address illustrator won't compile under Xcode 2.5.

Can anyone advise me please of what's wrong. The 5 lines are commented out in this script.

Regards

Brian

if (integer value of button "AppendName" of theWindow) = 1 then
set theInitials to (content of text field "Initials" of window 1) & " " & (content of text field "String" of window 1) as text
tell application "Adobe Illustrator"
--set PageOrigin to visible bounds of document 1
set theText to make new text frame at beginning of document 1 with properties {kind:point text, contents:tempName & "  " & theInitials, position:{(item 1 of PageOrigin) + 1, (item 2 of PageOrigin) + 80}}
--rotate theText angle 90 about top left
--set properties of the text of theText to {text font:text font "Geneva", size:14}
end tell
end if
if (integer value of button "Auto Append" of theWindow) 1 then
tell application "System Events" to tell process "Adobe Illustrator"
set frontmost to true -- activates Illustrator
click menu item "Save As..." of menu 1 of menu bar item "File" of menu bar 1
delay 0.2
tell window 1
keystroke tempName as text
end tell
end tell
my Showmessage("Please enter the correct name for the file, and select the correct file type.")
my SetSound()
else
tell application "Adobe Illustrator"
activate
set savePath to FilePath & tempName & ".EPS" as text
--save current document in file  savePath  as eps with options {class:EPS save options, compatibility:Illustrator 8, preview:color Macintosh , embed linked files:true , include document thumbnails:true  , embed all fonts:true , CMYK PostScript:true , PostScript:level 2}
--close current document saving no
end tell
end if

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.