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: How to do photos in AppleScript?



On Jul 31, 2007, at 1:31 AM, Mike Zornek wrote:

For the icon itself I wouldn't lose a ton of sleep if I couldn't make it
work, but I also have a (read-only) pdf property I need to offer so knowing
more about how applescripters handle binary date is helpful.

In general I think it's safer to assume that scripters will want (or need) to have images and other binary data in a file on disk. Since these binary types do not have a consistent cross-application representation, it doesn't make a lot of sense to make special types for them that will only be useful in your app.


So for the PDF for instance, instead of an attribute, you might add a command to export the document as PDF.

tell application "Billable"
   tell document 1
      export as pdf (posix path "/tmp/myInvoice.pdf")
   end
end

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

This email sent to email@hidden
References: 
 >Re: How to do photos in AppleScript? (From: Mike Zornek <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.