"iCal got an error: Can't Make id of event of calendar 4 into type referen

Hello everyone. i am completely new to MAC's and very new to scripting. Thanks in advance for any help.
I am tying to run an Apple Script that is called Scheduled Delivery.
I'm running 10.4.10 and have the most recent version of the script.
Basically what happens is I type up and email, add in the email address and save it to my drafts folder. The Scheduled Deliver script, when run, finds all the emails in my drafts folder and uses iCal to schedule a time to mail them (which is a specific time I enter)
Here is my process I go through-
I run the apple script by double clicking on the Scheduled deliver Icon, which was in my appications/MailScript folder. It brings up a new window with all my saved drafts. I select the draft I want to schedule a specific time to deliver. This is great.
When I click on the lower right button "Update Schedule" I get an error message...
"iCal got an error: Can't Make id of event of calendar 4 into type reference. (-1700)"
I cannot figure this out. I've tried testing it anyway. I can close the Scheduled Deliver window but the "Done" button is always grey out. It seems to place an event in iCal but no message ever gets sent.
Any help is greatly appreciated.
Thanks

Anyone? Any help is greatly appreciated.

Similar Messages

  • Applescript "Finder got an error: Can't make document file"

    I can get the file contents if I use choose file but if I do it this way, I get the error:
    error "Finder got an error: Can’t make document file ... to file
    Code:
    tell application "Finder"
              set theFolder to (choose folder with prompt "Select the start folder")
              set file_list to every file of theFolder
              repeat with myfile in file_list
          log (name of myfile as string)
          set fileContents to read myfile
          set fileText to paragraphs of (fileContents)
          repeat with nextLine in fileText
              if length of nextLine is greater than 0 then
                  log nextLine
              end if
          end repeat
              end repeat
    end tell

    Changing
    set fileContents to read myfile
    to
    set fileContents to read (myfile as alias)
    sorted it!

  • Can't make a New Event in Calendar. Why?

    My iMac is running OSX 10.8.2. My iPhone 4S is running 6.1.1. My iPad is running 6.1.
    If I try to enter a 'New Event' on my iMac I always get the following message:
    'The server responded with “400” to operation CalDAVWriteEntityQueueableOperation'
    The only options it gives me is:
    'IGNORE - TRY AGAIN - REVERT TO SERVER'
    No matter which option I use nothing synchs.
    I have to 'Force Quit' to get out of Calendar.
    When I look on my iPhone - iPad all I see is 'New Event'.
    This has been happening for a while now and I'm tearing my hair out.
    Many thanks for help in resolving this problem

    Thanks for replying.
    All of the Ownership & Permissions fields are grayed out/unchangeable. I "unlocked" the lock icon and changed to my account. R/W is now active. New Folder is now available.
    Thanks!
    Now... how did I switch out of my account and change to "unknown"??!!!
    - Ryan

  • 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.

  • 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

  • How can I make the marker event pulse width longer in NI-FGEN?

    I want to generate a marker event on PF0 line using NI-FGEN.I can set the marker event pulse width but when I was trying to make the pulse width units as 65 I was getting an  error-1074115931. 
    How can I make the marker event pulse width longer without using script as I am using PXI-5412 which is not supporting Script.
    Can anyone help me out in doing the same?

    Unforunately, as you mentioned, the PXI-5412 does not support scripting mode. This will limit you to 1 marker using sequence mode. However, the PXI-5421 and PXI-5422 would allow the functionality. 
    As far as making the pulse width longer, and as the KnowledgeBase Article that you linked to discusses, I don't think it will be possible to create a marker as long as 1us - 10ms using just the Marker properties and without using scripting. You can still try to do this with property nodes and see if you can get a usable result. Start with an example such as "Fgen Arb Waveform Marker" and use the "Marker Position" value to set the start time (you would want 0 here it looks like), and then "Marker Event Pulse Width Value" to change the pulse length, but again I am afraid you will probably reach the maximum of 640 ns here. If you're not able to get this going with the property node, you will need either a FGEN card that supports scripting or another card that does Digital I/O to accomplish this. 
    Thanks!
    Stephanie S.
    Application Engineer
    National Instruments

  • How can I make albums from events then delete events without deleting the album?

    Hey, just need a little help!
    How can I make albums from events then delete events without deleting the album?
    Many thanks

    You'll be more likely to get help with this if you ask in the iPhoto forum:
    https://discussions.apple.com/community/ilife/iphoto
    You'll need to tell people what version of iPhoto you have so they can give you correct advice.
    Regards.

  • After Mavericks upgrade, I disabled iCloud / iCal connection. Now I can't make any changes to my calendar

    I had multiple bad experiences with my iPhone using iCloud and when I upgraded, realized too late, that my computer was now going to be tied to the Cloud. After I recovered from the stress-induced, post-tramatic syndrome from my iPhone / iCloud experience, and verifying that I would not lose all my calendar entries, I disabled the Calendar connection for iCloud in System Preferences. Checked around iCal and nothing looked amiss.
    Then I went to schedule a new event. Right click, the New Event window pops up and before I have the opportunity to type, a window pops up with this message: "There was an error saving calendar data. Calendar encountered a critical error while saving to the database, and recent changes may be lost. More information may be available in the console."
    And left in my calendar is an entry called "New Event" that I cannot edit (I've tried using the menu as well as clicking). I tried deleting the event with this window popping up: "You can't change events in the "Home" calendar. Only the calendar administrator and any delegates with permission can make changes to read-only calendars. To make changes to the calendar, contact the calendar administrator."
    Me, I'm the calendar administrator and sole owner & user of this computer. Theoretically, "Home" should be me, not, as I suspect, some evil remnant of the Cloud sticking around to haunt me.
    Question #1 ??? How do I fix this without connecting to iCloud again
    Question #2 What is the console and where do I find the information referenced?
    Question #3 How do I make myself the administrator, especially when I thought I already was the administrator?
    Thank you.
    I'm on a MacBook Pro OSX Version 10.9.2

    Nevermind. After digging around some more in the Support community, I tried restarting my computer. Problem solved. After the mess iCloud made of my iPhone, it didn't occur to me that the fix would be something so simple for my computer.

  • Please help explain the error "Can't make «script» into type Unicode text"

    i am writing an applescript for my eyetv installation that handles recorded shows. i have posted in their forums, without reply, so thought maybe i could get some understanding of the technicalities of the fault to try to fix myself!!
    i have a sub-routine:
    to deleteeyetvrecording(theRecordingID)
    set theScriptLibrary to load script file "Macintosh HD:Library:Scripts:ScriptLibraryv1.scpt"
    tell application "EyeTV"
    theScriptLibrary's log_event("RecordingDone", "Deleting EyeTV recording: " & (get title of theRecordingID), 2)
    try
    delete theRecordingID
    on error theErrorMessage number theErrorNumber from theErrorObject
    theScriptLibrary's log_event("RecordingDone", "deleteeyetvrecording: " & theErrorNumber & ": " & theErrorMessage & ". Object: " & theErrorObject, 2)
    end try
    end tell
    end deleteeyetvrecording
    even though the line above the error works fine and retrieves the Title property of the eyetv recording, the delete command on the next line outputs to the log file:
    Sunday, October 26, 2008 09:50:51 [ 1 ] Error deleting file (4/4): -1700: Can’t make «script» into type Unicode text.
    what does this error mean? what syntax changes are needed?
    note this sub-routine worked in v1 of my script - i only copy and pasted it to the v2 script! go figure!
    regards
    jingo_man

    Hello
    Without knowing what theRecordingID is, how deleteeyetvrecording() is called and what the actual code of log_event() is, I can only guess.
    The said error log is most likely not written by the code in the try block you provided, which should throw error by itself when theErrorObject cannot be coerced to string. I'd guess you have an enclosing try block where you call deleteeyetvrecording() and the said error log comes from there.
    As far as I can tell, you should not assume that you can always coerce theErroObject (that is obtained from 'from' parameter of 'on error' statement) to text.
    Too little information to go any further.
    H

  • Calendar Server Error - Can't make it go away!

    Hi everyone,
    I am getting an error when my Calendar opens, and it repeats every few seconds and I can't make it go away and can't use my calendar. Here is a screen shot of the error. What can I do to make this go away?
    Thank you,
    Kelly

    I tried to delete all of my calendars, even on google, I don't even want them to sync. I can't find sync settings anywhere. This is the new message I am getting. I tried to go to that address and it won't let me. So I go to that calendar on gmail and delete everything I can. Is there a way I can uninstall and reinstall the calendar app?

  • Is there a way to create three different physical calendars in ical so that I can get a fiscal view of the calendars?

    Is there a way to create three physically different calendars in iCal so that I can view the calendar and events from a fical point of view?

    iCal just shows the calendars you have created in your account(s).  So if you are using iCloud just log into your iCloud account in a web browser and make as many new calendars as you wish to have.  Then enable those in iCal.
    If you use Google accounts or something else for the calendars, then create them as needed, and enable them in iCal.
    I have several separate calendars all displayed in iCal - a couple linked through my Gmail accounts, and one through my iCloud account.  Each uses a different default item color so they are distinct in iCal.

  • Can I make folders of events?

    I already have so many events that iphoto has become impossible. Isn't it possible to have folders of events? Or perhaps events inside events? Or is there any other way to organise this hug bundle of events? I tried albums, but as far as I can tell they just contain individual photos, and not events. All i want is to be able to tidy up my events.
    I hope I'm missing something obvious.

    You need to remember that iPhoto manages photos entirely different from Picasa. Picasa is a file management application where you deal with folders.
    iPhoto is a photo management application where the original files can be in one or 500 folders (events) and where the management portion takes place in albums, smart albums, folders, keywords, titles, ratings, etc. One the photo is in the library it won't make any difference where it's located because you can group them using one of the organizational tools I just mentioned.
    Events are date related. All of my shoots (family gatherings, parties, etc,) are uploaded into one event and then I clear the camera's memory card for the next shoot.
    I use keywords to identify what's in the photos, people, places, things (like cars, etc.). Smart albums are used to group photos from a wide date range, i.e. multiple events, that share a specific trait, i.e. keyword, title, description, rating.
    Regular ablums can be used to house events so you can sort them manually and combine them with other albums/events in folders.
    All of this organization is virtual. There is only one real copy of a photo in the library (2 if it's been edited) while all the rest are virtual, i.e. just pointers to the original file. You couldn't do that with a file management application because you'd have to duplicate image files to put them in other folders, etc.
    To learn more about DAM (digital asset management) applications on the professional level visit the The DAM Forum. It is a wealth of information on photo organization.

  • Max-DB 7.5 Error, Can't make it Offline

    Hello all,
    I am trying to upgrade my MaxDb 7.5 to 7.6 patch level 18. Before doing this as per the SAP notes I need to make the Max-DB offline using the dbmcli > db_offline command. But when I issue this command using sqd<SID> user then it given me error which is as follows:
    "Error! Connection failed to node (local) for database ACP: ERR_USRFAIL: user authorization failed" I tried to issue this command using <SID>adm and even root, but still I get the same error.
    Kindly help me to resolve this issue.
    Regards,
    Premkishan Chourasia

    Hi,
    you have to use a DB user to connect with using DMBCLI. For admin purposes, this is the DBM user, normally called 'control'. You should be able to connect to your db with the following syntax:
    dbmcli -n <host> -d <DB name> -u <DBM-user>,<password>
    Example:
    dbmcli -d SDB -u control,control
    (in the above example, I did not need to specify a hostname, because the db instance is on the local machine)
    The above dbmcli-command will put you in a DBMCLI-session, you can then enter other commands, including your db_offline.
    Ofcourse you may also directly use:
    dbmcli -d SDB -u control,control db_offline.
    Please let me know if this worked out for you.
    Regards,
    Roland

  • Time Machine error - can't make first backup

    I can't get Time Machine to make the first back up: I tried wirelessly and it reported a "Time Machine Error" after about 112GB of 270GB transfer, so I tried again via ethernet cable and again it failed with the same error message at about the same point.
    So what do I do now? There is no way that I can see to know what is causing the error - there is no error number nor detail in the error message: +Time Machine Error. Unable to complete backup. An error occurred while copying files to the backup volume.+
    Any help gratefully received.

    joecmac wrote:
    How can you search the system log to figure out what is causing the failure?
    Hi joemac
    First open the Utilities folder and then open the Console. You'll see various logs - I took the system log, so that I could see what had happened across the whole system. There's a mass of info, going back in time, so it's very very helpful if you know approximately what time the event took place. I did, because the backup failed before my eyes at 10.02 PM.
    I saw this message - I've edited out my computer's name and highlighted the location and the file name that caused the failure:
    8/28/08 10:02:59 PM /System/Library/CoreServices/backupd[26663] Error: (-36) copying /Users/~/Library/Preferences/IsmTempFile/ns14426860.tmp to /Volumes/Backup of ~ iMac/Backups.backupdb/~ iMac/2008-08-28-164831.inProgress/.../Macintosh HD/Users/~/Library/Preferences/IsmTempFile
    I googled the file name to see what it was - it turns out to be something generated by my scanner and not critical according to posters on various forums.
    I then went to the location (User/~/Library/Preferences), and deleted the file.
    Then I tried another initial backup and it worked.
    Hope this helps.

Maybe you are looking for