• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can't make ... into type Unicode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't make ... into type Unicode


  • Subject: Can't make ... into type Unicode
  • From: Terry Barnum <email@hidden>
  • Date: Mon, 23 Mar 2015 11:00:01 -0700

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


  • Follow-Ups:
    • Re: Can't make ... into type Unicode
      • From: Ron Reuter <email@hidden>
  • Next by Date: Re: Can't make ... into type Unicode
  • Next by thread: Re: Can't make ... into type Unicode
  • Index(es):
    • Date
    • Thread