How to pick user selected files only from one folder?
How to pick user selected files only from one folder?
- Subject: How to pick user selected files only from one folder?
- From: Erkki Pennanen <email@hidden>
- Date: Fri, 13 Jan 2006 08:15:48 +0200
Title: How to pick user selected files only from one
folder?
I should pick user selected files and process them. The command
"set sourceItems to the selection" works fine, but
it selects all files also from other folders, too. I should restrict
the selection only to user selected files in a spesific folder.
The sentence "set sourceItems to the selection of folder
"Macintosh HD:xxx" compiles but is giving error.
Is there some way to solve this? I have tried already "tell
folder .... end tell", but it doesn´t work either.
tell
application
"Finder"
activate
set sourceItems to the selection
--
set sourceItems to the selection of folder "Macintosh
HD:xxx"
display
dialog
sourceItems
as text
repeat
with
thisItem
in
sourceItems
-- my
process code
end
repeat
end
tell
regards
Erkki
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden