AppleWorks 6  error: Can't get every record of document "ElectroM (DB)"

"count" is in ApleWorks 6 Dictionary and script got compiled OK !
What is wrong in that script ?
tell application "AppleWorks 6"
set numberRecords to count records of document "ElectroM (DB)"
set loopCount to 1
repeat until loopCount > numberRecords
copy cell "Qty" of record loopCount of document "ElectroM (DB)" to partCount
set cellName to "B" & ((loopCount + 3) as string)
set cell cellName of spreadsheet of document "Inventair (SS)" to partCount as string
set loopCount to loopCount + 1
end repeat
end tell
Does someone know why ?
Thanks in advance
Alain

Try using:
tell application "AppleWorks 6"
set numberRecords to count records of document "ElectroM"
set loopCount to 1
repeat until loopCount > numberRecords
copy field "Qty" of record loopCount of document "ElectroM" to partCount
set cellName to "B" & ((loopCount + 3) as string)
set cell cellName of spreadsheet of document "Inventair" to partCount as string
set loopCount to loopCount + 1
end repeat
end tell
1. AppleWorks does not include the letters inside the parentheses when it refers to a document through AppleScript.
2. Cell can only be used in a spreadsheet; the field term needs to be used in a database.
(16845)

Similar Messages

  • Finder got an error: Can't get item 1 of {document file "foo" ...}

    I have a lot of files in Corel Painter 8's RIFF format. I want to write a script that opens a file and somehow forces Corel Painter 8 to save the file as a GIF. GUI scripting may be some help with the latter; now I am concentrating on finding RIFF files and opening them in Corel Painter 8.
    I have a script that does a depth-first search of the folders starting at some root folder, using the Finder application to do the file-system stuff. It creates a list with
    set docs to every document file of pages_folder whose file type = "RIFF"
    as it loops through folders it adds to the list like this:
    set more_documents to every document file of a_folder whose file type = "RIFF"
    set docs to docs & more_documents
    My naîve mental model is that docs is a list of document-file objects. Next I have a loop that attempts to strip out files for which a GIF file already exists (and is no older than the RIFF document). This works by deleting non-matching items like so:
    if not isgifneeded then
    set docs to items 1 thru (i - 1) of docs & items (i + 1) thru (length of docs) of docs
    end if
    Finally it tries to open one of the files in Corel Painter 8 using the Finder:
    open item 1 of docs using "Corel Painter 8"
    This does not work. I get an error message
    Finder got an error: Can't get item 1 of {document file "bar" of folder "foo" of folder "blah" of folder "pdc" of folder "Users" of startup disk, ... }."
    It lists all of the files. (The error message appears in a sheet that extends off the bottom of the screen!) They are identified in the message as document-file objects. The curly braces are, I believe, the AppleScript notation for a list. I expect to be able to obtain the first element of a list with ‘item 1 of xs’. My assumption is that the Finder’s open command would expect a document file object, or at least would be able to cope with being asked to open a document. What am I missing here?
    PowerBook 12" without mini-DVI   Mac OS X (10.4.7)  

    Hi Damian and welcome to Apple Discussions!
    One suggestion: try
    tell application "Finder" to open item 1 of docs
    (without 'using "Corel Painter 8"')
    As far as the Finder is concerned, "Corel Painter 8" is just a string of characters. And telling the Finder to open a file is just the same as double-clicking it: the Finder knows which app to use - as long as these are native Corel Painter 8 docs.
    Hope this helps,
    H

  • Error "Can't make every file of ... into type alias list" - please help!

    Hi
    I am trying to adapt a script that uses Max (an audio conversion tool) to convert files in a folder to another format. The original script which I found on a forum asked the user to choose the folder with the files in which need to be converted, but I want to specify the folder in the script so that it can be automated. So I changed the line:
    set sourceFolder to choose folder
    to
    set sourceFolder to "Macintosh HD:Users:nick:Desktop:test:"
    However I then get the error (this is the only line in the script I changed and the original script works fine):
    error "Can’t make every file of "Macintosh HD:Users:nick:Desktop:test:" whose name extension = "m4a" into type alias list." number -1700 from every file of "Macintosh HD:Users:nick:Desktop:test:" whose name extension = "m4a" to «class alst»
    Could someone let me know why I am getting this error and how I can sort it. The full script is below.
    Thanks
    Nick
    tell application "Max" to activate
    tell application "Finder"
    set sourceFolder to "Macintosh HD:Users:nick:Desktop:test:"
    set theFiles to (every file of sourceFolder) as alias list
    repeat with aFile in theFiles
    tell application "Max"
    convert aFile
    end tell
    delay 1
    tell application "System Events"
    tell process "Max"
    click button "Convert" of tool bar of window "File Conversion"
    set encoderOpen to true
    repeat while encoderOpen is true
    try
    window "Encoder"
    on error
    set encoderOpen to false
    end try
    end repeat
    end tell
    end tell
    end repeat
    end tell

    nick_harambee wrote:
    set sourceFolder to "Macintosh HD:Users:nick:Desktop:test:"
    This saves a string (Macin...) under the variable sourceFolder. You then try and use sourceFolder as an alias which doesn't work. To fix the situation try saving sourceFolder as an actual alias in itself. For example...
    set sourceFolder to folder "Macintosh HD:Users:nick:Desktop:test:"
    or perhaps
    set sourceFolder to "Macintosh HD:Users:nick:Desktop:test:" as alias
    Either of those should correct your problem.
    When using "(choose folder)" you get an alias returned which is why the original script worked fine.

  • Applescript for mail error can't get message id

    I have an applescript (found on internet) for Mail 4.5 that deletes messages in "on my mac" mailbox "Deleted Inbox" that are older than 120 days. The script runs from an iCal daily event. I drag messages from Inbox to "Deleted Inbox" when I don't want the message in Inbox, but I want to save the message for 120 days before deleting it. The script sometimes runs successfully, and sometimes gives error "Mail got an error: Can't get message id xxx of mailbox "Deleted Inbox"". Then in Mail, I "Mailbox / Rebuild" that mailbox, and run the script manually without error. How can I avoid that error? The script is essentially:
    tell application "Mail"
              set OldStuff to every message of mailbox TheBox where date received of it < OldDate
              repeat with ThisMessage in OldStuff
        delete ThisMessage
              end repeat
    end tell
    Thanks for any help.
    Ken

    How can I avoid that error?
    I don't actually know how you can avoid that error. However, maybe you can use a workaround and have the script rebuild the mailboxes automatically when such an error occurs. Try the following code:
    tell application "Mail"
      try
        set OldStuff to every message of mailbox TheBox where date received of it < OldDate
      on error
        activate
        tell application "System Events" to click menu item "Rebuild" of menu 1 of menu bar item "Mailbox" of menu bar 1 of process "Mail"
        delay 1 -- adjust if necessary
        set OldStuff to every message of mailbox TheBox where date received of it < OldDate
      end try
      repeat with ThisMessage in OldStuff
        delete ThisMessage
      end repeat
    end tell
    Since the above script uses GUI Scripting, you must enable the Accessibility Frameworks by clicking the checkbox labeled "Enable access for assistive devices" in the Universal Access System Preference pane.
    Message was edited by: Pierre L.

  • System Events got an error: Can't get current configuration of service?

    I'm trying to connect/disconnect services through apple script, here is the error I'm getting for "Ethernet" "AirPort" (these services are configured in services tab)
    I am able to manualy On/Off these services without supplying admin password, therefore it might not be privilages issue.
    *Error message:*
    *System Events got an error: Can’t get current configuration of service id "099F7D16-4F3A-4D49-9111-A4DF0A645378" of network preferences.*
    Scipt used:
    tell application "System Events"
    tell network preferences
    tell current location
    get the name of every service
    set myService to service "AirPort"
    if exists myService then
    --get service properties of myService
    set isConnected to connected of current configuration of myService
    if isConnected then
    disconnect myService
    repeat while (get connected of current configuration of myService)
    delay 1
    end repeat
    end if
    connect myService
    end if
    end tell
    end tell
    end tell

    Hi Damian and welcome to Apple Discussions!
    One suggestion: try
    tell application "Finder" to open item 1 of docs
    (without 'using "Corel Painter 8"')
    As far as the Finder is concerned, "Corel Painter 8" is just a string of characters. And telling the Finder to open a file is just the same as double-clicking it: the Finder knows which app to use - as long as these are native Corel Painter 8 docs.
    Hope this helps,
    H

  • Import Issue : "Database error: can't get path to master" when attempting to import photos (referenced method)

    Hi Everyone,
    I have a NAS (Network Attached Storage) which holds my photos. I want to import them into Apple photos (but via the reference method).
    I did this by going to Preferences/General and unchecking the 'Importing: Copy items to the Photo library' option.
    I connect to my NAS via AFP and have mount 'Media' which is where my photos are stored.
    I select the file/import option, navigate to aforementioned photo location and select the "Review for import" button
    I then receive an error which states:
    Unreadable File
    The following files could not be imported (they may be an unrecognized file type or the files may not contain valid data).
    Filename                    Reason
    Filename.jpg              Database Error: can't get path to master
    The above error happens on multiple file types.....
    However ...
    If I tick the option in the preferences/general to 'Importing : Copy items to photo library" option then the file will import successfully.
    I of course don't want to import the files I want them to be referenced...
    Anyone else experiencing this issue????
    Thanks in advance.
    Benjamin

    If this is a 3rd party application, I would seek out that company and ask for an updated version compatible with 2010, then it would be a matter of simply installing it per their instructions.
    Otherwise, the best course of action is to deactivate the feature from WSSv3 prior to removal. If that is no longer possible, then use
    FeatureAdmin to remove the feature from within 2010.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Rsh[3088]: [ID 365563 daemon.error] can't get stderr port in /var/adm/mes..

    Hi,
    We are using Solaris 9 in our SF6900 cluster. On one of the node we are getting below continuous flow of messages. Please let me know what does these messages means and how to clear them.
    root@l7n2> tail -f /var/adm/messages
    Aug 8 09:09:34 l7n2 rsh[3071]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3075]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3077]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3078]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3082]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3084]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3085]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3086]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3087]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    Aug 8 09:09:34 l7n2 rsh[3088]: [ID 365563 daemon.error] can't get stderr port: Cannot assign requested address
    ^C
    Thanks.

    Hi Tom,
         Thanks, but at this point, I've rebooted, checked and double-checked more times than I'd care to count...:(
         Since I can see the NMEA strings when the GPS module is hooked-up to the USB port, I guess I'll assume there's some reason why the
         AMA0 UART has not been released, or that the GPS receives some different signals through the TTY that it's not seeing through the AMA0.
          As I mentioned, when I use 'cat /dev/ttyAMA0', it just hangs, like it's getting no data. I'll keep looking...
         Thanks for your help,
              Dave

  • Can i get multiple records if selection screen is 900 using PROVIDE

    Hi All,
    Iam using following statement for fetching MULTIPLE records from infotype 0008. In Attributes if i declare LDB as pnp and selection screen as 900, then iam not getting any records.
    Instead of th selection screen 900 is empty. then records will getting properly.
    How can i get multiple records if selection screen is 900?
      PROVIDE * FROM p0008
                    between pn-begda and pn-endda.

    Hi Ranjith
    You can use
    PYBEGDA and PYENDDA instead of PN-BEGDA AND PN-ENDDA.
    Regards
    Muneer.VK

  • IChat Error: "Can't get video from the camera"

    When I try to Screen Share with iChat on a local network, I receive the error "Can't get video from the camera" when I have an external camera plugged into the FW400 port on my Mac Mini. The Screen Sharing feature works great when the camera is not connected. Anyone know why this is and how to fix it?

    Tell us about the Network you created please.
    What make and model modem ?
    Can it route (issue IPs) ?
    IS there a router ?
    Make and model of that please ?
    If there are two devices which is doing DHCP if any are ?
    IS there any computer that is sharing it's Internet Connection with any other computer ?
    I take it from the title and the post that you infer you can Video and Audio chat ?
    The Cannot get Video from Camera normally gets and Error Log pop up.
    This can be opened with the reveal triangle on the left. The Details shown will have a Error number. Do you know what this log says ? (normally Error 20 or 21)
    Old logs are stored in Users/(your account)/Library/Logs/iChatConnectionErrors by date.
    IF you post an Error Log stop at the line that Says "Binary Images for iChat" as we don't need the bits below that yet.
    As the Screen share in iChat uses an Audio component then the Camera if it is also the Mic needs to be ON.
    In your case this may mean that in the ichat Video Menu both Camera Enabled and Mic Enabled should both be ticked.
    (I have never seen an iChat error code for not (specifically) being able to get the Mic input so the message might be the only one iChat can pop up)
    It does seem very odd that it only effecting Screen Sharing.
    I have a Firewire connected DV converter that has two Firewire ports itself so I can input the camera feed to two computers. When this is in place the System also sees it as a Network.
    I have also heard of one person with a Firewire Stills camera and I think the Storage space was seen as an External Device and therefore appeared Networked which is why I asked the first set of questions.
    iChat does not like being in Two networks (a modem that issues IP address and a router doing the same or Wireless to a neighbour and Ethernet to your Own Internet connection, the Mac being the hub in a Share Internet connection, Wireless and Ethernet to the same router and using Parallels when set to Share the Mac's IP are the most common)
    The Screen Sharing option in iChat > Video Menu is ON ? (at both ends ?)
    As iChat's Screen Sharing is related to the System Screen Sharing and therefore Apple Remote Desktop you may find that in any routing device you may have to open ports 5900 and 5988 if not using UPnP
    http://support.apple.com/kb/TS1629?viewlocale=en_US
    You said Local Network. Do you mean this is using the Bonjour Buddy List ?
    11:21 AM Saturday; June 14, 2008

  • [ID 365563 daemon.error] can't get stderr port: Cannot assign requested add

    Hello friends, i m getting the messages bellow in error logs, please suggest me what i have to do
    " [ID 365563 daemon.error] can't get stderr port: Cannot assign requested add"

    Hi Tom,
         Thanks, but at this point, I've rebooted, checked and double-checked more times than I'd care to count...:(
         Since I can see the NMEA strings when the GPS module is hooked-up to the USB port, I guess I'll assume there's some reason why the
         AMA0 UART has not been released, or that the GPS receives some different signals through the TTY that it's not seeing through the AMA0.
          As I mentioned, when I use 'cat /dev/ttyAMA0', it just hangs, like it's getting no data. I'll keep looking...
         Thanks for your help,
              Dave

  • How can I get my PC office documents onto my new ipad mini

    How can I get my microsoft office documents off my PC and onto my new Ipad mini?

    You will have to install an app to your ipad that can open them. Then you can either use file sharing in itunes to transfere those files to your ipad. Or you can install icloud control panel on your pc, purchase apple's iwork applications, and save the files to icloud.
    iTunes file sharing:
    Transfer files between your computer and mobile apps
    If you have an iPod touch or iPhone with iOS 4 or later, or an iPad, you can use iTunes to transfer files between your computer and an app on your device that supports file sharing.
    You might want to do this if, for example, you want to save files you create on your device to your computer, or take files with you so you can use them when you’re away from your computer.
    You don’t need to sync your device to transfer files, but your device needs to be connected to your computer.
    For information about supported apps, see the documentation for your apps.
    ShowTransfer files from your iPod touch, iPhone, or iPad to your computer
    HideTransfer files from your computer to your iPod touch, iPhone, or iPad
    Connect your iPod touch, iPhone, or iPad to your computer and select your device.
    Click Apps.
    Below File Sharing, select an app from the list, and click Add.
    In the window that appears, select a file to transfer, and click Open.
    The file is transferred to your device, and can be opened in the app you selected in step 3.
    Icloud:
    iCloud Support
    http://www.apple.com/support/icloud/
    How to set up iCloud on all your devices
    http://www.apple.com/icloud/setup/
    Apple's iWork apps
    http://www.apple.com/iwork/

  • Can anyone tell me where can i get informatica manuals or documents ,

    Can anyone tell me where can i get informatica manuals or documents , pl send your comments to [email protected]

    Informatica?
    Look at the gifs on this page and read the letters: o r a c l e
    And then search in your internet browser the field where you can see something like http://forums.oracle.com... overwrite it with http://www.informatica.com and press the biggest key on your keyboard (that's the RETURN KEY). This will lead you to Informatica, perhaps there you could find docs and more.

  • Can I get back a pages document which I closed before saving?

    can I get back a pages document which I closed before saving?

    The answer is no, even if you're using OS X Lion. (You don't mention what version of OS X or Pages you use.)
    OS X Lion and Pages 4.1 autosave documents, even unsaved documents. But if you close an unsaved document, click the Don't Save button, then this document no longer exists.
    Earlier versions of OS X and Pages do not autosave documents. So closing an unsaved document effectively deletes it.

  • Can't Get Manual Recording To Work

    I have been unable to get manual recording to work and thought this was something to do with having dual monitors.  I have now disabled my second monitor, and it is still not working for me. It's possible that I have done something wrong or have misunderstood what manual recording is.
    To that end I have made a 3 minute video showing you the steps I took while attempting a manual recording of just three print screens.   Please could someone take a look ta the video and tell me if what you see is expected behaviour.  Thank you.
    manual-recording.mp4 - Google Drive

    Thank you for taking a look at the video Rick.  You can probably tell this problem is driving me mad.
    I did as you suggested but it made no difference to the outcome.  So next I uninstalled Captivate, and re-installed with only one monitor active, just in case that mattered.  I then kept it at one monitor but even with only one monitor videos appear in my manual captures.
    So next I re-enabled my second monitor and ran the test again. On monitor 1, video is included no matter what, and on monitor 2 it isn't.  I have filed a bug report with Adobe but so far the response has been to try running it as administrator and also to check the error logs.  I checked those and there is nothing but informationals in there.
    I also ran the entire test when running as an admin, and the results were the same.

  • How can I get Video Recording! on my Blackberry curve 8320 ???????????? HELP PLEASSEEEEE

    Hi, Im a bet stressed out i just got the blackberry Curve 8320 from Tmobile and realized it has no Video recording however the person that sold it to me says they downloaded a program like a converter or something and they used to have video recording on it.  Can you please tell me how i can get video recording on mine Please. Thank you.

    to use video you need an upgrade. The name is handheld device software OS. I believe you have 4.2. 4.5 is required.
    You have to wait for TMobile to release the 4.5 OS.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

Maybe you are looking for

  • Tab key and lookup table

    Hi, How to use the 'Tab' key to open a lookup table, E.g. BP Code, Name? Alternatively, how to use the 'Tab' key to call a formatted search? I hope to follow the standard in SBO and do away the Shift-F2. I am using VB and 2004B. Your input will be ap

  • While installing Adobe Premiere Elements 10 for Mac my installation encountered errors.

    While installing Adobe Premiere Elements 10 for Mac my installation encountered errors. Got about 42% and then crashed with an Exit error Code 7. The summary says: DW036: Payload cannot be installed due to dependent operation failure. I have screengr

  • 4 TB WD Re HDD formatting Issue

    Hi. I Have 2 WD 4 TB Enterprise Grade HDD. WD4000FYYZ SATA 6 Gb/s 3.5 Inch 7200 4 TB 64 MB I had created Mirrored RAID of 4TB using disk utility. I had copied about 3.5 TB data on this  RAID & as I was running out of space I wanted to dissove this RA

  • HT201210 phone activations required again and again

    I am using IPhone 5 which is asking for phone activation again and again since the day I have bought it. Now i am trying to restore it using ITunes but every time I am getting error 3259 and software download stops. There is no network problem at my

  • Expanded Recycling Program

    I was recently disappointed to find that the Best Buy Recycling program would no longer accept... well, a lot of what it used to. In some states, Utah for instance, recycling programs that responsibly take VHS tapes, small kitchen appliances, regular