Mailing Lists: Apple Mailing Lists

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

Re: illustrator code problem



Not having yet undertaken the job of moving my large ASS app to Xcode 3, I'd hope you that if you started in or moved to Xcode 3 you'd be able to compile against the 10.4 SDK so that running on Tiger was possible, otherwise, it would be years before anyone developing in ASS could move to Xcode 3.

Maybe you should try to get your Xcode 3 project to compile a Tiger- compatible app?

On May 31, 2008, at 2:49 AM, Brian Christmas wrote:

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 (AppleScript- email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/acn-lists- email@hidden


This email sent to email@hidden

_______________________________________________ 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
References: 
 >illustrator code problem (From: Brian Christmas <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.