• 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
alias list and class alst
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

alias list and class alst


  • Subject: alias list and class alst
  • From: Tobias Exner <email@hidden>
  • Date: Tue, 15 Dec 2009 11:17:49 +0100

hi list,


I've got a problem using code under leopard and tiger.

I don't know exactly what's the problem, so let me ask you.


The following code works with leopard ( 10.5.x )


    tell application "Finder"
        set selectionList to the selection as alias list
        repeat with itemAlias in selectionList
            if (class of item itemAlias) is folder then
                set itemisfolder to "1"
            else
                set itemisfile to "1"
            end if
        end repeat



but with tiger ( 10.4.11 ) I've got the following error:

AppleScript Error:
alias "Tiger:Users:tobias:Desktop:3050_0011.pdf" cannot be converted to type <<class alst>>


I hope there's someone with an idea whats wrong with those lines.



thanks in advance..


Tobias


 _______________________________________________
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: alias list and class alst
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: Application Bundle won't quit at Shutdown
  • Next by Date: Re: alias list and class alst
  • Previous by thread: Re: How do I pause a script to allow a webpage to load and then resume the script?
  • Next by thread: Re: alias list and class alst
  • Index(es):
    • Date
    • Thread