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

Similar Messages

  • AppleScript error on Tiger only: "can't make file into type alias"

    Hi,
    I'm successfully using this smart TextWrangler applescript from this webpage for opening files on the same folder as the current document:
    http://blog.ampli.fi/textwrangler-open-file-from-directory-of-current-file/
    It works fine on Mountain Lion.
    However, when I try it on Tiger 10.4.11, this error dialog appears: "TextWrangler got an error: Can't make [file] into type alias".
    The script basically gets the path of the current document in TextWrangler and posts a file chooser on such path.
    I guess these are the lines that Tiger doesn't like:
      set current_path to POSIX path of current_file
      set new_file to choose file default location (current_path) with multiple selections allowed
    open new_file
    After googling for the error "can't make [] into type alias", I tried to change such lines to:
      set current_path to (POSIX path of (current_file as alias))
      set new_file to choose file default location (current_path) with multiple selections allowed
    open new_file
    But, however, the same error remains.
    Do you have any idea on how could this work?
    Thanks!

    wow, 10.4...
    try this:
    set current_path to current_file
    set new_file to choose file default location (current_path) with multiple selections allowed
    open new_file
    I'm not certain when the standard applescript dialogs were updated to accept posix paths, but it may have been 10.5.

  • URGENT: Please Help....Can't make or receive calls on Z10

    Hi, 
    I bought a Z10 about a month ago. Updated it as soon as the 10.2 was available officially and it has been running perfectly. Tonight, however, I was on a call and suddenly the audio went away. I tried disconnecting from the call but it wasn't disconnecting despite several attempts until I gave up and pressed the power button to re-boot. Since I have rebooted, I can't make or recieve calls. Everytime I try to dial a number it immediately shows call ended. I also can't recieve any calls. I have full network, and can do everything else including surf the web, sent texts and BBMs. What seems to be the problem?? Please help as it is kinda urgent
    Solved!
    Go to Solution.

    Well wait and see till after you backup and do the battery pull. I guess you are backing up with Link and you know how to Restore so the below is a pre written file just in case and if you click one of those links you can scroll to the bottom of the page and change the country.
    You can restore your phone to factory settings if you wish to see if it corrects your issue. Resetting to factory settings will wipe out all your data so you should save it first. To save all your stuff download and install BlackBerry Link on your computer from the link below. Resetting will not back-up the OS on your phone. Once you have downloaded and installed BlackBerry Link connect your phone to your computer and save your stuff. Once saved disconnect your phone from the computer.
    To reset your phone: tap the Settings App, scroll down and tap Security and Privacy, tap Security Wipe, tap the blank box and enter blackberry.
    Once Wiped reconnect your phone to your computer and install your stuff.
    http://us.blackberry.com/software/desktop/blackberry-link.html
    http://ca.blackberry.com/software/desktop/blackberry-link.html

  • I forgot my passcode. Please help explain the steps to restore

    Forgot the password after changing it :/ So what should i do? It locked me out for a good 5 days. now i can stop it getting locked by attempting to sync into itunes and that way i tried 40 different combinations with similar patterns to what i THOUGHT i'd set it to. i don't want to loose my contacts or texts. most of my music is in my library so thats not an issue. i've seen a few videos on youtube where you hold down the power button and the home button. would this work? i backed it up last week (before i set the new password). when i just went to restore it, it offered me a choice to back it up again as well. if i were to back it up now would that make it imposible for me to restore since the new back up has the lost password on it? or should i just restore it to the one from last week??? Please help?? Phoning doesnt seem to work. i want to restore it to the backup i made last week but the way its asking me if i want to back up before i restore is what's confusing me.... if i click "dont back up" it says it will restore to factory defaults and everything will be lost but if i back up does'nt that mean it'll just restore to the way it is now...as in it'll restore itself to the part where i dont know the password... if any of that made any sense :S

    If you are unable to restore your iPhone with iTunes without having to enter the passcode, you will not be able to update your iPhone's backup. You will need to place the iPhone into recovery mode in order to restore the iPhone with iTunes and you can restore from the most recent backup available.
    http://support.apple.com/kb/ht1808

  • IPhoto (9.6) No longer works after Yosemite Update! Please Help. The error message I get is below.

    Error Message:
    "Your photo library is either in use by another application or has become unreadable.
    Shut down and restart your computer, and then open iPhoto again. If the problem persists, try rebuilding your photo library. To do this, quit iPhoto, and then reopen it while keeping the Option and Command keys pressed. You can also try restoring your photo library from a backup."
    I have performed the instructions above with the exception of the restoration from a backup.(Option/Command no longer yields a menu. Just the error message again).  Really hoping there is a fix outside of the restoration since I have neglected to back up for some time.
    P.S. I see that this is happening to others....I have another Mac to update to Yosemite and fear the same results.

    Every time there is an update to anything someone somewhere has an issue. That's why backing up prior to updating is so important.
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.

  • Please help with the query (INSERT RETURNING BULK COLLECT INTO)

    I am trying to write a query inside the C# code where I would insert values into a table in bulk using bind variables. But I also I would like to receive a bulk collection of generated sequence number IDs for the REQUEST_ID. I am trying to use RETURNING REQUEST_ID BULK COLLECT INTO :REQUEST_IDs clause where :REQUEST_IDs is another bind variable
    Here is a full query that use in the C# code
    INSERT INTO REQUESTS_TBL(REQUEST_ID, CID, PROVIDER_ID, PROVIDER_NAME, REQUEST_TYPE_ID, REQUEST_METHOD_ID, SERVICE_START_DT, SERVICE_END_DT, SERVICE_LOCATION_CITY, SERVICE_LOCATION_STATE, BENEFICIARY_FIRST_NAME,
    BENEFICIARY_LAST_NAME, BENEFICIARY_DOB, HICNUM, CCN, CLAIM_RECEIPT_DT, ADMISSION_DT, BILL_TYPE,
    LANGUAGE_ID, CONTRACTOR_ID, PRIORITY_ID, UNIVERSE_DT, REQUEST_DT, BENEFICIARY_M_INITIAL,
    ATTENDING_PROVIDER_NUMBER, BILLING_NPI, BENE_ZIP_CODE, DRG, FINAL_ALLOWED_AMT, STUDY_ID, REFERRING_NPI)
    VALUES
    (SQ_CDCDATA.NEXTVAL, :CIDs, :PROVIDER_IDs, :PROVIDER_NAMEs, :REQUEST_TYPE_IDs,
    :REQUEST_METHOD_IDs, :SERVICE_START_DTs, :SERVICE_END_DTs, :SERVICE_LOCATION_CITYs,
    :SERVICE_LOCATION_STATEs, :BENEFICIARY_FIRST_NAMEs, :BENEFICIARY_LAST_NAMEs, :BENEFICIARY_DOBs,
    :HICNUMs, :CCNs, :CLAIM_RECEIPT_DTs, :ADMISSION_DTs, :BILL_TYPEs, :LANGUAGE_IDs,
    :CONTRACTOR_IDs, :PRIORITY_IDs, :UNIVERSE_DTs, :REQUEST_DTs, :BENEFICIARY_M_INITIALs,
    :ATTENDING_PROVIDER_NUMBERs, :BILLING_NPIs, :BENE_ZIP_CODEs, :DRGs, :FINAL_ALLOWED_AMTs,
    :STUDY_IDs, :REFERRING_NPIs) RETURNING REQUEST_ID BULK COLLECT INTO :REQUEST_IDs
    However, when I run this query, it gives me a strange error ORA-00925: missing INTO keyword. I am not sure what that error means since I am not missing any INTOs
    Please help me resolve this error or I would appreciate a different solution
    Thank you

    You cannot use (and do not want to in this case) the BULK COLLECT.
    create table for_testing
       the_id      number not null primary key,
       some_data   number
    declare
       l_return_value for_testing.the_id%type;
    begin
      4 
       insert into for_testing
          the_id,
          some_data
       values
          1,
          5
       returning the_id into l_return_value;
       dbms_output.put_line('the return values is ' || l_return_value);
    end;
    20  /
    the return values is 1
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.02
    TUBBY_TUBBZ?Is a simple example. In the future, please use the tags to preserve formatting on your code like i have so it remains readable .                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Please help! The alias can't be opened because the original item can't be found. Portable Hard Drive, Macbook, OS 10.7

    Hi folks,
    Desperate for some help!
    I have a very cluttered, slow Macbook Pro running 10.7.5. Bought a 2TB WD My Passport for Mac (2TB) with the intention of transferring my many, many files and folders over to it, to increase my memory and boost the performance of my Macbook. (Also handy to have files on the go).sktop
    I transferred everything (all files off desktop, documents, photos etc) using drag and drop.
    Then I trashed all the files, but did NOT empty Trash because I wanted to check the process had worked
    Now, when I plug in my hard drive, and open it up, all my files and folders are there, but with little arrows on the bottom left of the file/folder. When I go to open any one of them, I get this message:
    "The alias “X” can’t be opened because the original item can’t be found."
    I don't know what to do. Is this because of the way I dragged and dropped the files? I'm guessing so. Or is it because I still have the items in my Trash? (I'm obviously petrified of emptying the Trash now though) Is it because of my OS?
    Apologies, I'm a novice to this (hence why my 4 year old mbp is running so slowly; it's got 4 year's worth of work on it, and now I obviously don't even know how to transfer files properly to an external HD) but I'd really be ever so grateful for your help. I just want to successfully back up my files to this HD so my mpb runs faster. I'm now terrified I've corrupted my files. I don't even understand what an Alias is.
    Would love to hear from you! I'm totally new to these forums so hope I've posted right! Thanks!

    sibby22 wrote:
    ...Now, when I plug in my hard drive, and open it up, all my files and folders are there, but with little arrows on the bottom left of the file/folder. When I go to open any one of them, I get this message:
    "The alias “X” can’t be opened because the original item can’t be found."
    It sounds like what got created on your external is a collection of aliases which point to the original files and folders but aren't actually copies of the files and folders themselves. The original items have been moved to the trash so even if they could be found, they couldn't be opened. As a test, pick a file (not a folder) on the external that should be large and see what size it actually is (Get Info). Aliases are smaller so you can tell the difference apart from that little arrow (the Get Info box will also identify the file as an alias). Dragging the files to the external should have automatically created copies rather than aliases unless you held down the Command and Option keys while dragging.
    In any case, you were wise not to empty the trash; to be safe get those important files back out of the Trash so you can start over. But this time, try moving a few at a time and let us know what happens.

  • I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can

    I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can this is all new to me.

    Read this: iOS 4: Updating your device to iOS 5 or later
    ... oh I think it is a 3gs or a 3
    This makes a difference. What does it say in Settings > General > About?

  • HT4009 Unfortunately, I keep getting the error "can not connect to iTunes. Code:0" I've tried rebooting, signing out of my apple ID, can someone please help or advise me on what to do? Many thanks, Ryan

    Unfortunately, I keep getting the error "can not connect to iTunes. Code:0" I've tried rebooting, signing out of my apple ID, can someone please help or advise me on what to do? Many thanks, Ryan

    hi i had the same problem today when i updated my itunes to latest version. however, i have just found my songs in the 'itunes media' folder. this was accessed through 'my music'  then keep clicking through until you find itunes media and all my library songs were in there and i then just added these files to my library and all were restored however, i have lost all my playlists but at least my 700 songs are back. very dissapointed with apple that they have let this happen with their latest update, the previous version was miles better than this one . hope you find them. stevo

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

  • Why that when I record a video in my iPhone 4s then I will transfer it to my laptop, the video is in slow motion? Please help so that I can use always my video recording feature. Thanks!

    Why that when I record a video in my iPhone 4s then I will transfer it to my laptop, the video is in slow motion? Please help so that I can use always my video recording feature. Thanks!

    Video is synced from the computer to the iPhone via iTunes. You need to load the video into iTunes, make sure it is iPhone compatible before you do that, and once it is in iTunes, then sync to the iPhone.
    Never said what computer OS you were using. Also, the computer processor, amount of RAM can make a difference with HD video.

  • Hi, please help with the installation of Lightroom 4, I bought a new Mac (Apple) and I want to install a software that I have on the album cd. My new computer does not have the drives. Can I download software from Adobe? Is my license number just to be ab

    Hi, please help with the installation of Lightroom 4, I bought a new Mac (Apple) and I want to install a software that I have on the album cd. My new computer does not have the drives. Can I download software from Adobe? Is my license number just to be able to download the srtony adobe.

    Adobe - Lightroom : For Macintosh
    Hal

  • I cannot restore my Iphone 4, I keep getting the error code 1611, please help and the Iphone keeps displaying the "Plug-In Itunes Symbol!??

    I cannot restore my Iphone 4, I keep getting the error code 1611, please help and the Iphone keeps displaying the "Plug-In Itunes Symbol!??

    http://tinyurl.com/nyj36v

  • I'm in syria and they blocked me from using any VPN service please help without VPN i can't open the store help please ( using iphone 5 version 9.1.4 )

    I'm in syria and they blocked me from using any VPN service please help without VPN i can't open the store help please ( using iphone 5 version 9.1.4 )

    There is nothing that anyone here on a user forum can do to help you.  If it is a local issue in Syria, then you need to take it up with your phone company or authorities there who have prevented you from using VPN.
    Nobody here can help you.

  • I am trying to copy a document and I keep getting the error "Can't paste the objects. The requested transformation would make some objects fall completely off the drawing area."

    I am trying to make duplicate documents with minor adjustments to each and when I try to copy the artwork from one document and paste it into the new document I keep getting the error "Can't paste the objects. The requested transformation would make some objects fall completely off the drawing area." Both documents are exactly the same size, res, color format etc. I even tried to drag and drop and get the same error message. Anyone know what I can do to resolve this issue?

    Try scaling the view size down to 6% or so and then do a Select All. See if there are objects off the artboard which may be causing this error. Most often you will see this if there were guides dragged from a ruler which were selected by dragging the white arrow and then deleted. This leaves the anchor points at the edge of the work area.

Maybe you are looking for

  • How to uninstall Media Encoder CC in Mac OS (after Media Encoder CC 2014 is installed)

    Hi, I would like to uninstall Media Encoder CC as I now have Media Encoder CC 2014 installed. It is nearly 2GB and I need the space. There isn't an uninstall shortcut as there is for most of the other CC apps? I could try dragging it all to the trash

  • RFC ERROR       timeout during allocate

    Hi all, We are trying to connect our ECC 6.0 system to ECC 5.0 system thru RFC we get the following error. Both the systems are available running Timeout during connection setup. Please check partner availability [abrfcio.c    8139] A  *** ERROR => R

  • A lot of issues with my S5

    Since these recent updates my phone has been glitching the **** out. Like my keyboard will type on its own, facebook will not update its feed, and sometimes my lock screen to type in my numbers to unlock my phone wont show up. What is the deal? Also

  • **ERROR: Messages in webi log files

    Hi, My log files seem to be littered with messages like: ***ERROR:C3_cdbDSLServer:(A) cdbDSLServer_LoadUniverseMetadata : CreateChildItem (false).... or **ERROR:C3_Dictionary:cdbDictionaryFolder::RegisterFolder failed for: "WE Calendar".... or **ERRO

  • Siri gone after update to my 4s

    siri disappeared after i update my 4s  How do I get it bac?