• 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: "info for"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "info for"


  • Subject: Re: "info for"
  • From: Cornwall <email@hidden>
  • Date: Sat, 25 May 2002 10:48:21 -0700

At 3:35 PM +1000 5/25/02, Timothy Bates wrote:

>tell application "Finder"
> try
> set theSelection to the selection as alias list
> on error
> set theSelection to {the selection as alias}
> end try
>
>end tell
>
>repeat with anItem in theSelection
> info for (anItem as file specification)
>end repeat

At 10:58 PM -0700 5/24/02, Paul Berkowitz wrote:

>There's no more 'file specification' in OS X. That bit will stop working one
>of these days. Better just to leave it as

Getting the selection as alias list has already stopped working in OSX.

tell application "Finder"
try
set theSelection to the selection as alias list
on error
set theSelection to {the selection as alias}
end try
end tell

That returns a list of Finder file refs.

{document file "synopsis_content1b.jpg" of folder "Wangdoodles" of folder "Desktop" of folder Etc Etc}

I need a repeat loop to get a list of alias refs.

This still gets an alias list.

set cFold to choose folder
tell application "Finder"
try
set alsLst to every item of cFold as alias list
on error
set alsLst to every item of cFold as alias as list
end try
end tell

OSX 10.1.4 and AppleScript 1.8.2b3

Corny
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: "info for" (From: Timothy Bates <email@hidden>)

  • Prev by Date: Ejectability
  • Next by Date: Re: quarkxpress
  • Previous by thread: Re: "info for"
  • Next by thread: "info for"
  • Index(es):
    • Date
    • Thread