Re: Can't make ... into type Unicode
Re: Can't make ... into type Unicode
- Subject: Re: Can't make ... into type Unicode
- From: Ron Reuter <email@hidden>
- Date: Mon, 23 Mar 2015 13:06:58 -0500
Looks to me like it is breaking in prep for the display dialog: which can’t convert a record into text, which is what you’re trying to do there.
> display dialog "item_info: " & item_info
— Ron
> On Mar 23, 2015, at 1:00 PM, Terry Barnum <email@hidden> wrote:
>
> My simple AS to process QT movies has stopped working. I don't use it too often but I believe it broke after moving to Yosemite. I'm sure I'm doing something wrong that Yosemite doesn't like but can't figure out what it is.
>
> Here's a snippet of the AS:
>
> on open these_items
> repeat with i from 1 to the count of these_items
> set this_item to item i of these_items
> set the item_info to info for this_item --this is where it breaks
> display dialog "item_info: " & item_info
> if folder of the item_info is true then
> process_folder(this_item)
> else
> try
> set this_extension to the name extension of item_info
> on error
> set this_extension to ""
> end try
> try
> set this_filetype to the file type of item_info
> on error
> set this_filetype to ""
> end try
> try
> set this_typeID to the type identifier of item_info
> on error
> set this_typeID to ""
> end try
> if (folder of the item_info is false) and (alias of the item_info is false) and ((this_filetype is in the type_list) or (this_extension is in the extension_list) or (this_typeID is in typeIDs_list)) then
> process_item(this_item)
> else
> display dialog "Sorry. Can't work with the input file."
> end if
> end if
> end repeat
> display dialog "All Pau!"
> end open
>
> It doesn't make it to the display dialog and throws this error:
>
> Can’t make {name:"Exportv2.mov", «class ascd»:date "Thursday, March 19, 2015 at 2:56:43 PM", «class asmo»:date "Thursday, March 19, 2015 at 3:00:32 PM", size:3.61098339E+9, «class asdr»:false, alias:false, «class ispk»:false, visible:true, «class hidx»:false, «class nmxt»:"mov", «class dnam»:"DYKMentalHealthv2.mov", «class asda»:alias "Macintosh HD:Applications:QuickTime Player.app:", «class kind»:"QuickTime movie", «class asty»:"MooV", «class asct»:"TVOD", «class utid»:"com.apple.quicktime-movie", «class aslk»:false, «class bzst»:false, «class assv»:"", «class aslv»:""} into type Unicode text. (-1700)
>
> Any ideas?
>
> Thanks,
> -Terry
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> applescriptobjc-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden