• 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
Re: Path to a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Path to a file


  • Subject: Re: Path to a file
  • From: Joe Szedula <email@hidden>
  • Date: Sat, 7 Apr 2001 21:47:02 -0500

On 4/7/01 1:51 PM, email@hidden
(email@hidden) wrote:

How are you getting the file name?

Is it in a "known" folder? For example is the folder somewhere in the
system folder (i.e. "Macintosh HD:System Folder: mp3list.txt2")? If it is
you might use something like:

set PrefsFolder to path to preferences folder as text
-- returns complete path to "Preferences" folder
set myLocation to PrefsFolder & "mp3list.txt2"

Or is your file being supplied through a drag & drop? Something like the
following will work:

on open (theList)
repeat with theItem in theList
set theItem to theItem as text -- result is something like "Macintosh
HD:my file"
DoSomethingWithItem(theItem)
end repeat
end open


Joe Szedula
Email: email@hidden


  • Prev by Date: Re: Archive on Goggle
  • Next by Date: Re: Filemaker portal fields
  • Previous by thread: Re: Path to a file
  • Next by thread: GTQScriptingLibrary1.2 --image sort
  • Index(es):
    • Date
    • Thread