get type of selected finder item
get type of selected finder item
- Subject: get type of selected finder item
- From: Tobias Exner <email@hidden>
- Date: Thu, 23 Apr 2009 17:33:45 +0200
Hi list,
I'm searching through the web since some hours but can't find any
solution... so I'm going to post it here.
In a little applescript I want to use a selected file or folder from
finder.
That's quite easy:
tell application "Finder"
set this_item to the selection as alias
display dialog this_item as string
end tell
but I want to know if the selected item is a file or a folder.
Depending
on this info the script would work in another way.
Any ideas...?
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