• 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
Re: old script fails AND BUG in Smile 3.5.2 (build 609)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: old script fails AND BUG in Smile 3.5.2 (build 609)


  • Subject: Re: old script fails AND BUG in Smile 3.5.2 (build 609)
  • From: Robert Poland <email@hidden>
  • Date: Fri, 26 Mar 2010 06:44:23 -0600

All,

NEW CLUE, The script works on my older iMac (OS 10.6.2) but still fails with the new 27" iMac (OS 10.6.2).


It fails at "tell application "Finder" to set theKind to (kind of
currentItem)" with the error;

Finder got an error: Can't get alias "Macintosh
HD: Users: RLP: Documents :Clutter: HTM L: photo:work folder:".

On Mar 25, 2010, at 4:19 PM, Robert Poland wrote:

OS 10.6.2.

This (portion of) script ,after five years of using it, fails. What has changed?

on run
set
myFolder to choose folder
tell
me to open {myFolder}
end run

on open (droppedItems)
repeat with index from 1 to the count of droppedItems

-- display dialog (count of droppedItems) & " " & index & " " & droppedItems as string

set currentItem to (item index of droppedItems)

It used to be that the items in a drop list were aliases. But no longer in Snow. They are now class 'bmrk', I think. Try adding as alias after the last line, above, as in ...

set currentItem to (item index of droppedItems) as alias

_______________________________________________

Robert Poland - Fort Collins, CO



 _______________________________________________
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

References: 
 >Re: old script fails AND BUG in Smile 3.5.2 (build 609) (From: "Stockly, Ed" <email@hidden>)
 >Re: old script fails AND BUG in Smile 3.5.2 (build 609) (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: How do I write "If option key is down then" in AppleScript ?
  • Next by Date: Re: old script fails AND BUG in Smile 3.5.2 (build 609)
  • Previous by thread: Re: old script fails AND BUG in Smile 3.5.2 (build 609)
  • Next by thread: Unwanted Response
  • Index(es):
    • Date
    • Thread