• 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
errors checking class of item in Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

errors checking class of item in Finder


  • Subject: errors checking class of item in Finder
  • From: email@hidden
  • Date: Thu, 12 Apr 2001 21:06:41 EDT

If the script containing the following snippet is invoked via OSA Menu it
returns a -1753 error

set ,
theseItems to every item in selection
repeat with aItem in theseItems
set ,
aItemClass to the class of aItem as string
set ,
aItemName to the name of aItem as string

if aItemClass is "folder" then
set ,
aItemPath to the folder of aItem as string
end if
if aItemClass is "disk" then -- a disk image most of the time
set ,
aItemPath to ("") as string
end if
end repeat

If ran from inside Smile it works fine, what's the difference?


BTW
The script that contains the above code creates a new folder inside each item
in theseItems named:(somePrefix & aItemName), thats why I need the item
reference as a string.


  • Prev by Date: Re:New O'Reilly book on AppleScript
  • Next by Date: Re: Anyone tried text searching in Acrobat?
  • Previous by thread: Re:New O'Reilly book on AppleScript
  • Next by thread: Bug Report - Applescript 1.6 extension and Handle CGI Request
  • Index(es):
    • Date
    • Thread