• 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
Error Msg 10004 and 1708
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error Msg 10004 and 1708


  • Subject: Error Msg 10004 and 1708
  • From: James Roberts <email@hidden>
  • Date: Thu, 31 Mar 2011 14:50:24 -0400

I had a script running fine (thanks Mark and Yvan) for a couple of days. Now I am getting constant 10004 and inconstant 1708 errors. The scripts function fine but generate these errors. 10004 is a privilege violation and 1708 shows as a command not understood. But it works fine (I think)
It seems to me I only started getting these after 10.6.7
Anyway here is one of the scripts. Any help would be great.

(* Set Lable Index colours of selected files to defaults *)
set fileColorList to ¬
{red:{"app", "scpt", "bin", "pl", "py", "sh"}, orange:{"zip", "mpkg", "pkg", "tgz", "gz", "dmg", "torrent", "iso", "tar"}, yellow:{"xml", "xpi", "html", "htm", "PrefPane"}, green:{"aa", "m3u", "mp3", "mp4", "mov", "xspf", "qt", "aif", "aiff"}, blue:{"epub", "pdf", "txt", "rtf", "asc", "ascii", "djvu", "old"}, purple:{"pages", "numbers", "keynote", "doc", "xls", "nbp", "csv", "ics", "ppt", "pps"}, grey:{"png", "jpg", "jpeg", "gif", "tif", "tiff", "psd"}}

set theseFiles to ¬
choose file with multiple selections allowed


tell application "System Events"
repeat with myFile in theseFiles
get info for myFile
set fileExt to name extension of myFile
tell application "Finder"
if fileExt is in orange of fileColorList then
set label index of myFile to 1
else if fileExt is in red of fileColorList then
set label index of myFile to 2
else if fileExt is in yellow of fileColorList then
set label index of myFile to 3
else if fileExt is in blue of fileColorList then
set label index of myFile to 4
else if fileExt is in purple of fileColorList then
set label index of myFile to 5
else if fileExt is in green of fileColorList then
set label index of myFile to 6
else if fileExt is in grey of fileColorList then
set label index of myFile to 7
end if
end tell
end repeat
end tell


James Roberts
email@hidden

None are more hopelessly enslaved as those who falsely believe they are free.
"—JOHANN WOLFGANG von Goethe (1749-1832)"




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Error Msg 10004 and 1708
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: Mail App - plain text
  • Next by Date: Re: Mail App - plain text
  • Previous by thread: Re: AppleScript-Users Digest, Vol 8, Issue 147
  • Next by thread: Re: Error Msg 10004 and 1708
  • Index(es):
    • Date
    • Thread