Mime-Version: |
1.0 (Mac OS X Mail 7.0 \(1822\)) |
Content-Type: |
text/plain; charset=us-ascii |
Date: |
Wed, 11 Dec 2013 11:01:44 -0600 |
Reply-To: |
|
Subject: |
|
From: |
|
Message-ID: |
|
In-Reply-To: |
<a05111b00cece30d46dd8@[10.0.0.5]> |
Content-Transfer-Encoding: |
quoted-printable |
Sender: |
|
Parts/Attachments: |
|
|
On Dec 11, 2013, at 09:12, Walter Ian Kaye <[log in to unmask]> wrote:
> It seems I can get either a whose clause filtered list of file objects *or* an alias list, but I can't seem to get both. Been trying various syntax.
______________________________________________________________________
Hey Walter,
As far as I know it can't be done pre-Mavericks.
However this does work on Mavericks:
-------------------------------------------------------------------------------------------
tell application "Finder"
set _target to target of front window as alias
set fileList to (files of _target whose name extension is "dmg") as alias list
end tell
-------------------------------------------------------------------------------------------
Pre-Mavericks this is what I used to do when I wanted to convert Finder-References to an alias list:
-------------------------------------------------------------------------------------------
on makeAliasList(_list)
tell application "Finder"
repeat with i in _list
set contents of i to (i as alias)
end repeat
return _list
end tell
end makeAliasList
-------------------------------------------------------------------------------------------
tell application "Finder"
set _target to target of front window as alias
set fileList to (files of _target whose name extension is "dmg") as alias list
end tell
makeAliasList(fileList)
-------------------------------------------------------------------------------------------
--
Best Regards,
Chris
|
|
|