Re: Path to a file
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