What's the use of class furl?
What's the use of class furl?
- Subject: What's the use of class furl?
- From: Skeeve <email@hidden>
- Date: Mon, 28 Jul 2008 12:00:24 +0200
Hi!
The command "choose file name" gives me something of "class furl".
I wonder what's the use of class furl. What's it's advantage? As far as
I can see there is none and I could also use a string. In fact! I have
to convert it to one to get useful information!
There is nothing that tells me the folder of the thing.
There is nothing that tells me it's name.
Or am I missing something?
Currently I have a stay open script that asks for a filename on start:
set target to choose file name "Where shall the result be stored"
default name "result"
When I reopen it, it should ask for a new filename and location, giving
the old one. I choose to do it this way, because I don't like to work
with strings and splitting on fixed path seperators.
on reopen
set {pth, nme} to paragraphs of (do shell script "dirname " &
(quoted form of (target as text)) & ";basename " & (quoted form of
(target as text)))
set target to choose file name with prompt "Where shall the result
be stored" default location (POSIX file pth) default name nme
end reopen
Are there any hidden features of furl that I don't know of and which can
come in handy?
-- Skeeve
_______________________________________________
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