Re: What's the use of class furl?
Re: What's the use of class furl?
- Subject: Re: What's the use of class furl?
- From: Axel Luttgens <email@hidden>
- Date: Mon, 28 Jul 2008 14:11:24 +0200
Le 28 juil. 08 à 12:00, Skeeve a écrit :
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?
Unless I'm wrong, the ASLG, especially its various sections related to
aliases and files, along with:
<http://developer.apple.com/technotes/tn/tn2022.html>
might provide some clues.
HTH,
Axel _______________________________________________
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