Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > problem opening...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 1617 of 1674
Post > Topic >>

problem opening Appleworks do***ent

by fergus@[EMAIL PROTECTED] (Fergus McMenemie) Jun 1, 2008 at 07:43 AM

Anybody able to tell me where I am going wrong in the following:-


tell application "AppleWorks 6.2.9"
   activate
   try
      set selectedText to selection of front do***ent
      set envelope to "TechmorePB:stationary:GPEnvelope10.cwk"
        
      -- gave up with the above and tried a choose!     
      set envelope to choose file
      open do***ent envelope
      display dialog "doc opened" buttons {"OK"} default button "OK"
with icon 1
      paste
      select menu item "Print…" of menu "File"
   on error
      display dialog "Unable to print envelope." buttons {"OK"} default
button "OK" with icon 0
   end try
end tell

I cannot get the do***ent to open at all using applescript. The do***ent
GPEnvelope10.cwk is a plain AW do***ent and opens fine in AW. I am
running under Mac OS X 10.5.2 leopard.
 




 3 Posts in Topic:
problem opening Appleworks document
fergus@[EMAIL PROTECTED]   2008-06-01 07:43:06 
Re: problem opening Appleworks document
Jolly Roger <jollyroge  2008-06-01 03:56:15 
Re: problem opening Appleworks document
fergus@[EMAIL PROTECTED]   2008-06-01 23:00:41 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 15:47:09 CST 2008.