Re: creator & type codes???
Re: creator & type codes???
- Subject: Re: creator & type codes???
- From: John Delacour <email@hidden>
- Date: Tue, 15 Apr 2003 15:03:55 +0100
- Mac-eudora-version: 6.0a15
At 7:06 pm -0600 14/4/03, Gnarlodious wrote:
This droplet returns a dialog wit some of a dropped file's record info, save
it as "application" to use it:
A droplet is certainly the best way, but I'd suggest a stay-open
droplet and a text field in the dialog that will allow the user to
select and copy what she wants.
This droplet will accept any number of dropped files.
(* Save as application named "type\creator" _stay-open_ *)
on run
tell app "Finder"
set ls to {}
repeat with f in (get selection)
set end of ls to ("" & f) as alias
end repeat
end
open ls
end
on open ls
set {s, r, z} to {"", return, " "}
repeat with f in ls
tell app "Finder"
if f's kind is not "folder" then
try
set s to s & "\"" & f's name & "\"" & r
set s to s & "'" & f's file type & "'" & z
set s to s & "'" & f's creator type & "'" & r & r
end
end
end
end
tell me to display dialog "\"File name\"
file type creator type
" buttons "OK" default button 1 default answer s
end
--
JD
_______________________________________________
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.