• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [AS] saving as AppleWorks 5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AS] saving as AppleWorks 5


  • Subject: Re: [AS] saving as AppleWorks 5
  • From: kai <email@hidden>
  • Date: Thu, 9 Feb 2006 01:54:33 +0000


On 8 Feb 2006, at 23:53, Yvan KOENIG wrote:

On a french forum, someone is asking how script the function

save this_document in this_file using translator AppleWorks5

As far as I know, there is no real translator to do that.

Not as far as I can see, Yvan. These are the options I get:

----------------

tell application "AppleWorks 6" to export translators

--> {"ASCII Text", "BMP [QT]", "Excel Mac 5 spreadsheet", "Excel Mac 98, 2001 spreadsheet", "Excel Win 5 spreadsheet", "Excel Win 97, 2000, XP 2002 spr", "HTML", "JPEG 2000 Image [QT]", "JPEG [QT]", "MacPaint [QT]", "Photoshop [QT]", "PICT [QT]", "PNG [QT]", "QuickTime Image [QT]", "RTF", "SGI Image [QT]", "Text", "TGA [QT]", "TIFF [QT]", "Word Mac 6 document", "Word Mac 98, 2001 document", "Word Windows 6, 95 document", "Word Windows 97, 2000, XP 2002 "}

----------------

I tried to use GUIscripting but I failed.
Is one of you able to help ?

The following works here. While it doesn't attempt to modify the save path from the current default (actions that will be somewhat configuration-dependent), the general approach may help to get you started.


------------

set fileName to "Test.cwk"
tell application "System Events" to tell process "AppleWorks 6"
	set frontmost to true
	keystroke "s" using {shift down, command down}
	tell window "Save: AppleWorks 6"
		repeat until exists
			delay 0.2
		end repeat
		set value of text field 1 to fileName
		tell pop up button 1 of UI element 1 of UI element 1 of UI element 9
			click
			tell menu item "AppleWorks 5.0" of menu 1
				repeat until exists
					delay 0.2
				end repeat
				click
			end tell
		end tell
		click button "Save"
	end tell
end tell

------------

---
kai


_______________________________________________ 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
  • Follow-Ups:
    • Re: [AS] saving as AppleWorks 5
      • From: Yvan KOENIG <email@hidden>
References: 
 >[AS] saving as AppleWorks 5 (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Determining the Default Mail App
  • Next by Date: Re: Determining the Default Mail App
  • Previous by thread: [AS] saving as AppleWorks 5
  • Next by thread: Re: [AS] saving as AppleWorks 5
  • Index(es):
    • Date
    • Thread