I then double clicked the file draw2pages.aplescript, went to File - chose Save as and chose Application bundle and its then when I click on save that the syntax error happens. No doubt I'm making some simple mistake somewhere??

If the script doesn't appear 'styled' in the Script Editor window but looks like:

It's because one component is missing.

My guess is that you are trying to save the version designed for both operating systems.AppleScript is unable to guess what you want to do.

When a script (like the original one) contains calls to different applications, (here "Extra Suites.app" and "My Progress Bar.app") it refuses to compile if one of them is unavailable.This is why I built OS specific versions which are now available on my iDisk.

Everything is exactly where it should be as per your screenshots. Yes - my problem is that it doesn't look "styled" . The file I downloaded from your idisk was "AWdraw2iWork.zip". I then copied from the "for MacOS X 1056" folder both the my progress bar script and the my progress bar app to the correct places. I opened up the my progress bar script to make sure that is styled and my applescript is working properly - by the way my applescript editor version is 2.2.1, and the script is styled properly. I then opened the draw2pages script (from the 10.5.6 folder) and when it is opened, it's not 'styled' as you suspected. The script file itself does say "The version is dedicated to MacOs X 10.5.6 and higher" so I'm opening the correct one - even double checked my OS was 10.5.6 on my Mac as well so I'm really at a complete loss.

What are you getting if you click the button "Compile", the one with the Hammer ?

I wish to add that(1) I discovered that I erroneously swapped instructions setting the paper size.(2) I was able to build a MacOS X 10.5.6… version using a single auxiliary tool.So a new archive is available on my iDisk.

When I click on Compile, an error message comes up saying "Syntax Error Expected end of line but found property". It highlights the word 'version' that I've highlighted below. If I delete out the script this section about an old version of appleworks, the syntax error then happens again further down in some same sort of thing ie version warning. I deleted that again to see if it would clear the problem but then got another syntax error saying "Expected "given","with","without", other parameter name, etc. but found identifier. It highlight the word "objects" as I highlighted below in my second copy/paste from the script.

Happily, my iMac "Intel inside" which was out of my home is back.I just discovered an oddity with scripts compiled on the PPC then open on the intel inside. I get also the error message.I knew that I had a serious reason to post only text versions but I didn't remember which it was.Now, I know.Good news, when I compile on the imac, the compiled scripts behave flawlessly on the G5 so, I will replace the archive by one created with scripts compiled on the imac.This version is now available !

Thanks: I can't look at it until Tuesday but I'll try to do so then.My iWork trial version expires on Wednesday and I haven't yet decided whether to buy it or not. I managed to get all my spreadsheets working in Numbers versions (though I was irritated to discover that there is no AppleScript for copy or paste so I had to use a System Events handler, and no 'select document 2' to change from one sheet to another - as you can do in AW - so I had to use QuicKeys). I'm still struggling with a couple or peculiarities in Pages: the real problem of course is the database one, as I don't really want to have to buy FileMaker Pro while AW still works.

Roger Wilmut1 wrote:Thanks: I can't look at it until Tuesday but I'll try to do so then.My iWork trial version expires on Wednesday and I haven't yet decided whether to buy it or not. I managed to get all my spreadsheets working in Numbers versions (though I was irritated to discover that there is no AppleScript for copy or paste so I had to use a System Events handler, and no 'select document 2' to change from one sheet to another

on shortCut(a, t) tell application a to activate tell application "System Events" to tell application process a repeat with i from 1 to count of t keystroke ((character i of t) as text) using {command down} end repeat end tellend shortCut

The first script won't work because I need to switch between two open documents which will have different names each time the script is run (making a new monthly accounts page, then copying info from previous month, so the two documents are different each month). In AppleWorks 'select document 2' brought the document behind to the front. I handle it by using QuicKeys to click in the appropriate places to operate the menu.

The copy script: I'm doing this from memory (it's on the other machine which is currently off) but, having selected a cell in numbers, it's something like

For copy/paste/cut …I use the handler entitled shortCut so it may be called by every application for every function linked to a shortcut of the kind command_key + one_key.The one which you ^posted is not a 'copy' one but its 'paste' brother

More Like This

Retrieving data ...

This site contains user submitted content, comments and opinions and is for informational purposes only.
Apple may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Apple can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums.
Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.