Distinguish between AW5 and 6 in script

I'm trying to create an application in Automator to automate the conversion of AW to iWork. I'm using one of Yvan's scripts to convert AW6 to iWork successfully. The only step remaining is to convert to AW6 from 5, something that shouldn't be too hard since all it has to do is open and save. However, I can't find a good way to distinguish between AW5 and 6. In his script, I believe Yvan does this here:
on AWtoAW6(leCheminOriginal_UniText) -- leCheminOriginal_UniText est Unicode text
          local leFichier, flag, nf, l, nouveauChemin
          set leFichier to leCheminOriginal_UniText as alias
          try
                    tell application "AppleWorks 6.2.9"
  activate
  open leFichier
                              set nf to name of document 1
                              if nf contains v6 then
                                        set AppleScript's text item delimiters to v6
                                        set l to text items of nf
                                        set AppleScript's text item delimiters to ""
                                        set nf to l as text
                              end if
                              if nf does not end with ".cwk" then set nf to nf & ".cwk"
                              set nouveauChemin to cheminDeStockage & nf
                              tell application "System Events"
                                        if exists (file nouveauChemin) then set name of file nouveauChemin to (text 1 thru -(2 + (length of "cwk")) of nf) & my horoDateur(modification date of file nouveauChemin) & ".cwk" (* name stamped *)
  make new file at end of folder cheminDeStockage with properties {name:nf, file creator:"BOBO", file type:fileType}
                              end tell
                              set leFichier to nouveauChemin as alias
  save document 1 in leFichier
  close document 1
                    end tell -- AppleWorks 6
          on error
                    set rapport to rapport & msg96 & nouveauChemin & return
          end try
end AWtoAW6
But I'm not sure. What I need is a script that opens, checks if it's an AW5 file, if it is opens and saves in AW6, and then proceeds to open my other script that can do the

I'm not sure what you mean. The files have to be saved as AW6 for the iWork apps to be able to open them.
Yvan has added all of his AppleWorks scripts to his Box.com account. He says the one you need is https://app.box.com/s/hqq9jwfi45nknjpf6d52

Similar Messages

  • Distinguishing between CSV and Excel file formats

    I am trying to distinguish between CSV and Excel files.   Most of the files I need to process are CSV, but some have been opened and re-saved in Excel format.  I know about the Excel toolbox available, but haven't used it yet. 
    I need to be able to open a spreadsheet file regardless of if it is in CSV or Excel format.  Any help would be greatly appreciated.
    Here are two example files, one CSV and one Excel.  Both have .XLS file extensions. 
    Attachments:
    20-4-XLS.xls ‏21 KB
    20-5-CSV.xls ‏8 KB

    Hi Paul,
    I think the matter is not the extention (xls or csv or whatever) but the format of the data written in your file.
    To see what I mean, open the xls file you posted with notepad... What does it look like ?
    You have tobe sure of the format of the file you want to read so that you can develop an appropriate VI... if you want to be able to read different type of data format, do a test before reading the file and then use an appropriate routine for each format.
    Hope this helps you...
    BTW, to read the one named CSV, a simple "read from spreadsheet file" VI will do the job
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Distinguishing between topics and queues

              Hi,
              I have a generic piece of code that takes a javax.jms.Destination that does different
              things depending if the destination is a queue or a topic.
              The problem is that it seems that destinations in Weblogic implement both queue
              and topic:
              instanceof queue <new_JMSTopic_1>
              queue name: <new_JMSTopic_1>
              weblogic.jms.common.InvalidDestinationException: Destination must be a queue,
              ne
              w_JMSTopic_1
              at weblogic.jms.common.Destination.checkDestinationType(Destination.java
              :113)
              at weblogic.jms.client.JMSSession.createBrowser(JMSSession.java:1516)
              at weblogic.jms.client.JMSSession.createBrowser(JMSSession.java:1500)
              at Test.run(Test.java:100)
              at Test.main(Test.java:311)
              Is there anyway for me to programatically distinguish between queues and topics
              as there seems not to be any javadoc on weblogic.jms.common.Destination and instanceof
              does not work? I would prefer not to rely on exceptions.
              I'm using Weblogic 8.1 sp2.
              Thanks
              Riad
              

              Cool. Thanks for your help Tom.
              Riad
              Tom Barnes <[email protected]> wrote:
              >Hi Riad,
              >
              >This has come up before.
              >
              >For now, you may cast dest to weblogic.jms.common.DestinationImpl
              >and call "isQueue()". Normally, only the javadoc'd methods
              >in weblogic.jms.extensions are intended for public use,
              >but for this case we make an exception.
              >
              >In the next release, this method will be exposed through
              >a new public WL JMS API extension:
              >weblogic.jms.extensions.WLDestination,
              >and might not be available otherwise.
              >
              >Tom, BEA
              >
              >P.S. A java tip: The JDK's built-in "javap"
              >is useful for viewing an arbitrary class api.
              >As in "javap weblogic.jms.extensions.JMSHelper".
              >
              >Riad wrote:
              >> Hi,
              >>
              >> I have a generic piece of code that takes a javax.jms.Destination that
              >does different
              >> things depending if the destination is a queue or a topic.
              >>
              >> The problem is that it seems that destinations in Weblogic implement
              >both queue
              >> and topic:
              >> instanceof queue <new_JMSTopic_1>
              >> queue name: <new_JMSTopic_1>
              >> weblogic.jms.common.InvalidDestinationException: Destination must be
              >a queue,
              >> ne
              >> w_JMSTopic_1
              >> at weblogic.jms.common.Destination.checkDestinationType(Destination.java
              >> :113)
              >> at weblogic.jms.client.JMSSession.createBrowser(JMSSession.java:1516)
              >> at weblogic.jms.client.JMSSession.createBrowser(JMSSession.java:1500)
              >> at Test.run(Test.java:100)
              >> at Test.main(Test.java:311)
              >>
              >> Is there anyway for me to programatically distinguish between queues
              >and topics
              >> as there seems not to be any javadoc on weblogic.jms.common.Destination
              >and instanceof
              >> does not work? I would prefer not to rely on exceptions.
              >>
              >> I'm using Weblogic 8.1 sp2.
              >>
              >> Thanks
              >> Riad
              >
              

  • Cannot distinguish between left and right sounds IN EARPHONES. Please help!!

    when i connect my earphone, i cannot distinguish between left and right sounds (which gives a plesant effect); both left and right sounds are same. Earlier it use to work fine. I realised about this problem when an app-3D audio illusion was was not giving proper sounds, and my ipod songs were also sounding dull. i hav removed that app, but still my ipod songs sound monotonous. I have tried using different headphones, but problem still persists. I am not sure wheather this is a hardware or software issue..PLEASE HELP!!

    You're welcome. And thanks for marking question as solved.
    Happy listening
    Stedman

  • Distinguish between 0001 and 0006 Vendor in SRM?

    Hi,
    how can i distinguish between 0001 and 0006 vendors in SRM side after they have been replicated from R/3.
    Regards,
    Neha

    Hi Muthu,
    Thanks for your response.
    VENMAP contains both the vendors as both the vendors are replicated from ECC.
    I have found one solution:
    During the replication add a piece of code in both the methods of the  BADI BBP_TRANSDATA_PREP
    What will the code achieve:
                From the table CT_LFA1 identify the vendors with KTOKK = '0006'
                for those vendors set CT_LFA1-SPERM = 'X'.
                This will update the table field BUT000-XBLCK with 'X'.
                Hence, this can be used in the search help to distinguish between 0001 and 0006 vendors.
               XBLCK is used for blocking vendors from any purchasing activity .
    in my opinion this solution should work.
    What do u say?
    Regards,
    Neha Misra

  • Difference between abort_exec_request and deactivate_execution scripts

    Does anybody can explain the difference between abort_exec_request and deactivate_execution scripts which come with OWB?
    The first one will "abort the job in a managed way" the other "deactivate it so that the job is Completed in a managed way". What does that exactly mean?
    Thanks in advance for some explanations!!

    Hi Tonguç,
    Your AQ have four subcriber. "State" column value chances* after all subscribers dequeue the message.
    On the other hand, you won't see this result because of retention parameter. if you don't set retention time, message deleted from queue after dequeueing.
    Look at "retention_time"
    ex :
    EXEC dbms_aqadm.alter_queue(
    queue_name => 'AQ_MARKETING_DATA_QUEUE',
    retention_time => dbms_aqadm.INFINITE);
    also you can set this parameter when creating your queue
    * i ignored failing cases, such as exception queue etc.

  • How can I distinguish between iMessages and SMS messages in the iOS 7's "Messages" app?

    I often chat with the same contact using both services, but I just have a duplicate contact thread in the "Messages" app, which I cannot distinguish unless I go into the thread itself and check to see whether the conversation is blue or green. Is there a way to distinguish between the two services? If so, how?
    If not... Apple, get on it.

    Excuse me great powerful one. I will certainly deal with it and I'll try to survive. Sorry if I have troubled you, great Sir. I am not worthy of your answers.
    BTW: If you would have read the Q thoroughly you would not have posted an exact same answer.
    "...unless I go into the thread itself and check to see whether the conversation is blue or green. Is there a way to distinguish between the two services?"
    And I got your reply saying:
    "Yes, by going into the thread itself and check to see whether the conversation is blue or green."
    Wow, that was heplful.

  • Programmatically distinguish between running and reserved vi's

    I want to programatically check whether a VI is running. I tried to use the "ExecutionState" property, but this did not work for me. My problem is that my definition of running does not match the execution state property’s definition of running:
    My Definitions
    ·         Running = Some element of this VI is currently executing (run arrow looks like this: )
    ·         Reserved = This VI is a sub VI of a running VI, but this VI is not actually running (run arrow looks like this: )
    ·         Idle = This VI is in memory but is not running or reserved (run arrow looks like this: )
    Execution State property definitions
    ·         Running = Some element of this VI is currently executing   OR   this VI is a sub VI of a running VI (run arrow looks like this  or like this )
    ·         Idle = This VI is in memory but is not running (run arrow looks like this: )
    Since each VI's front panel displays a running arrow when that VI is running and a reserved arrow when that VI is reserved, there must be some way to programatically distinguish between these two states.  I hope that this distinction is exposed to programmers.

    You should also go vote for this idea - http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Need-a-way-to-visualize-VI-call-chain-hierarchy/idi-p/...
    Just to expand on P@Anand's suggestion, because it is a good one - you can obtain references to all the VIs and check their state, and then open the BDs of those which are Run Top Level and manuallly inspect where the code is actually stuck.
    Note that if your top level VIs are the ones which are reentrant, you will need to open a reference to the clone, and that's not listed in the All VIs In Memory property, although there are some ways around that. You can try to open N references in a loop using MyVI.vi:# as the VI name and ignore those which return an error, but you should note that the numbers don't necessarily start from 1 and that NI might close up the option to get the clone references like that.
    You could also try closing the main VI to unload it and then opening a new one and looking at the Unopened SubVIs hierarchy, which should list all of the clones. I'm assuming that if the main VI is unloaded, only the clones which are still running will still be in memory, but that might change if you have classes (which don't unload) and I haven't actually tried this myself.
    Try to take over the world!

  • How to distinguish between enabled and disabled tasks in SSDT-BI 2012

    Hi,
    I've got SSDT-BI 2012 together with VS2012 installed. Simple questions: What is the difference between enabled and disabled tasks in control flow from the design/color point of view? I do see that the disabled tasks changes to grey (omg are you really kidding
    me????) from black. This could be a bad joke or dream however is not.
    So I'm kindly asking you to help me solve this problem. How can I change the color difference between these two options (enabled task vs disabled task)? I do not care whether the one will be yellow or pink, simply just need to be recognizable at first
    look and not under long and painful examination.
    Thanks for your reply. Hopefully it will be useful.
    Karol.

    Hi Karol,
    It’s true that it only changes the font color of the task name text to grey after disabling a task in SSDT 2012. In SSDT 2010, the whole task control including icon will turn grey after it is disabled; in BIDS, the background color of the task control will
    turn grey after it is disabled. These behaviors are by design. Personally, I agree with you that this behavior in SSDT 2012 is not very readable.
    If you have concerns, I would suggest you submitting a wish at
    https://connect.microsoft.com/sql.
    Connect site is a connection point between you and Microsoft, and ultimately the larger community. Your feedback enables Microsoft to make software and services the best that they can be, and you can learn about and contribute to exciting projects.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Could someone help me to clearly distinguish between SOAP and HTTP adapter?

    In which scenarios we can go for HTTP adapter and when to go for SOAP adapter?

    Hi Lekshmi !!
    A SOAP message will be bundled inside the soap envelope.HTTP is not an adapter in adapter engine whereas soap is an adapter i.e, HTTP doesn't require a communication channel where as SOAP requires.You can send soap messages using some SOAP client.
    SOAP Adapter is used to xchange SOAP messages bw remote clients and webservices....
    check this link for more differences..
    SOAP and HTTP adapter
    When you need to Send Data to XI from a Webservice , your SOAP adapter is used.
    HTTP adapter is used when you want to post a HTTP request message from a web application to XI.
    How can i make use of SOAP Sender Adapter without using any tools like XML Spy etc....
    XML SPy is used as a TEST tool when you are sending SOAP information to XI. TO actually send data , you need to configure a webservice and construct a SOAP request message and post the data .
    we use SOAP adapter when we need to connect to remote system or use Webservices in these cases we use SOAP adapter.
    HTTP Adapter is used by extenal systems to connect to Intergartin server using native HTTP Interface.
    the http adapter is a service which is directly connected to integration engine. Adapter Framework (Java) isnt involved. It is much more performant than SOAP adapter.
    The SOAP adapter is written in Java and is responsible for the SOAP envelope around the real XML message. You can build/remove that envelope as well in the mapping and use instead http adapter. But standard for webservices is using SOAP adapter.
    Check this thread....
    Difference between SOAP and Http Sender
    HTTP Adatpter Vs Soap Adapter
    HTPP Adatpter Vs Soap Adapter ????
    Difference between SOAP and Http Sender
    Difference between SOAP and Http Sender
    Plain HTTP Adapter vs SOAP Adapter with regards to SSL
    Plain HTTP Adapter vs SOAP Adapter with regards to SSL
    Hope it clears your doubt !!!!
    Questions are welcome here!!
    <b>Also mark helpful answers by rewarding points </b>
    Thanks,
    Abhishek Agrahari

  • Distinguishing between Form and URL variables

    My mind isn't working like it should today, but what I am trying to do is:
    1) alter a page via passing a argument in the URL
    2) store this in a hidden field within the form on the page
    3) retrieve the hidden field when the page is refreshed or in this case manipulated again for printing.
    Basically, I have a report screen that allows the user to toggle between paging 1 page at a time or show all pages. If they click for all pages I pass a variable (allPages), and store it in a hidden field (allPages). Now if the user presses the "Print" button I reload the page stripping out form elements and put in Page breaks so that the report prints fairly nicely. Whats not working is my ability to differentiate between the parameter passed in the URL and the parameter contained within the form.
    I am currently able top get the URL passed parameter via:
    request.getParameter("allPages")
    Is there a way to check for the form element, if it exist then use it else check for the URL passed parameter, or default it.
    Thanks in advance.

    I wonder, why you didn't use two different name for the parameter via URL and via Form, so your program should can easily distinguish where come from where, am I right?
    The other way, you may check the method, whether it is "post" or "get", the get method is what you said as via URL and post normally use by form. But I think, it is better use two different parameter for Form and URL.

  • Link between pe51 and SAP script

    I have a requirement for check printing along with remuneration statement.
    I have copied the standard sap script f110_prenum_chck into z110_prenum_chck
    I am using the standard driver program RFFOUS_C.
    My requirement is: Remuneration statement from PE51 should be printed in the top portion of the page and check should be printed in the middle portion. For Remuneration part, I have kept Main Window in position in the script with the element 525-HR as the only active element.
    For check portion, everything is working fine as i have customized it accordingly. For remuneration statement Funct. ppl have copied some standard version in PE51 to Z say ZXXX.
    but remuneration statement is not getting printed.
    How do i trigger ZXXX into z110_prenum_chck without changing the standard program??

    Hi Babu,
    I never came across this senerio so i have no idea but as per your req i think abaper may help you so kindly contact abap consultant.
    Thanks

  • Problems distinguish between OEM and GRID in documentation

    Hi all,
    I know, probably mine is an annoying question, but I really find difficult to distinguish the topis related to OEM and GRID. I have to configure the OEM dbconsole for a cluster, forcing a virtual IP, but I go lost in documentation (metalink too) because is quite impossible to have a clear and definitive guide to OEM NO GRID.
    Is anyone able to point me to an exhaustive documentation??
    Any help will be appreciated.
    thank you very much

    You are right, there's no specific DBConsole documentation. Standalone DBConsole is installed and configured by utility 'emca'. On metalink there's a comprehensive description of this utility,including for clustered environments.
    Overview Of The EMCA Commands Available for DB Control 10.2 Installations
    Doc ID: Note:330130.1
    Werner

  • ITunes can't distinguish between movies and TV shows

    Hi,
    How old is iTunes now? How many updates have we been fed with all kinds of new 'features' that are either not that useful or already duplicate functions? Why can iTunes STILL not catalog files correctly?
    I have movies and TV shows all mixed together, some are duplicated and some are just named 'comedy' or some other useless title. I got so fed up with it I spent a rainy day painstakingly renaming and sorting all these files. This was followed by the inevitable long drawn out and slow process of resynching Apple TV, resynching iPhones and basically playing every file labelled 'untitled' or 'unknown' and then identifying and renaming it.
    So I was well-pleased when the latest version of iTunes decided it didn't like my new filing system and has messed it all up again. I now have duplicate files, files incorrectly filed, broken links and right now over 400 'missing' files according to iTunes.
    They're not 'missing'. They're on the same hard drive in the same folders and in the same place they've always been. They've not been renamed, reordered or in anyway changed, yet the wonderful iTunes has decreed things ain't what they should be and changed it all for me.
    I'm not happy. By all means change my files, but not to create the mess you've now left me to sort out.
    What is it with Apple these days? why can't they just leave something that works to function properly. I can find my own 'album cover art', I don't need iTunes to paste the wrong art on the wrong album and mix up all my genres, shows and movies.
    If you want to help, fix that mother of a problem before making it look pretty.
    Thanks,
    Rich

    It is possible to have mistakenly authorized a computer more than once. To fix that:
    Open iTunes.
    From the Store menu, choose "Deauthorize This Computer…"
    Enter your account name and password.
    Click OK. A message appears reading "This computer has been successfully deauthorized."
    Click OK.
    Repeat steps 2 through 5 above. If you see the same message reading: "This computer has been successfully deauthorized," then your computer was using multiple authorizations.
    Repeat steps 2 through 5 above until you see a message reading "This computer was not authorized. To authorize this computer, play a song or video you have purchased using this account."
    If that does not fix it for you, you can "deauthorize all" your computers. This will solve your problem, but you may only do this once per year.
    Open iTunes on a computer
    From the Store menu, select "View my Account..."
    Sign in with your Apple ID and password.
    Under "Computer Authorizations" select "Deauthorize All".
    Authorize each computer you still have, as you may require.
    After you "deauthorize all" your authorized computers, authorize each one as required.
    iTunes Store: About authorization and deauthorization:
    http://support.apple.com/kb/HT1420
    One computer using multiple iTunes Store authorizations:
    http://support.apple.com/kb/HT1206

  • Distinguishing between READ and WRITE synchronized?

    Example: highly multi-threaded application, but almost all threads use a common resource - read only in most cases.
    In some rare cases (few in number and occurrence), however, the resource can be modified by a single thread. So the resource has to be synchronized, with the result that only one thread can be running at the same time.
    Idea (stolen from data base systems...): Why not introduce something like a "weakSynchronized" in the Java standard, such that as many "weakSynchronized" blocks as there are can aquire the monitor on the resource at the same time without blocking each other. A normal "synchronized" then would have to work as follows: not allow any new "weadSynchronized" blocks to access the monitor (for not having to wait eternally), and then wait until all old "weakSynchronized" blocks release the resource.
    What about this idea?
    Background: Currently worked with such an application - decision was to use the good old synchronized for having easy code and not having to implement an own mechanism - but this way, the application is not as fast as it could be (was faster, but with deadlocks, when synchronization was not yet correct).

    Seems so - obviuosly the java stuff had this idea just a little before me.
    Quite firm to java 1.4, but seems as if I still have to learn for 1.5...
    I'll have a look for that.

Maybe you are looking for

  • How ofter should I charge my iPhone G3?

    My phone does not seem to hold a charge very long. I'm not playing music, reading books or watching movies.  I do email, photos,some apps. and of course use the phone. I seem to go from 100% to 60% pretty quickly. I charge each evening and sometimes

  • Touchscreen monitors for Windows 8 ?

    I have a hp desktop and monitor and was wondering if HP will be releasing a touchscreen monitor for windows 8. They did a TS monitor afew years ago but discontinued it. If windows 8 if designed more for this hands-on approach, i would think all manuf

  • Bug in JDev 9.0.3.3: Adding new attributes

    for me, it's seems to be a bug when: - you have an existing view object with attributes of two EOs - add new attributes from the EOs to the view object (in our case the column names are identical, JDev names them to TCN and TCN1 in the select-stateme

  • The symbols that appear on my internet page have gone (back, forward, favourites). How do i get them back?

    The symbols that appear on my internet page have gone (back, forward, favourites). How do i get them back? As well as this whenever I go into iPhoto and edit my images the image distorts or goes blank. Why is this?

  • Can't register/activate my Photoshop program.

    I signed up for the Creative Cloud for Photographer last year and have been paying for it since. The problem is that my version of LR has been registered properly and I can find it when I check "My subscriptions", but my version of PS has always been