• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
What's the use of class furl?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: What's the use of class furl?
      • From: Axel Luttgens <email@hidden>
    • Re: What's the use of class furl?
      • From: "J. Stewart" <email@hidden>
  • Prev by Date: Re: reading a property list item
  • Next by Date: Re: What's the use of class furl?
  • Previous by thread: Re: Is "frontmost application" depreciated
  • Next by thread: Re: What's the use of class furl?
  • Index(es):
    • Date
    • Thread