• 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: Just returning Filename... not whole path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Just returning Filename... not whole path


  • Subject: Re: Just returning Filename... not whole path
  • From: Michelle Steiner <email@hidden>
  • Date: Sun, 23 Oct 2005 18:48:10 -0700


On Oct 23, 2005, at 6:27 PM, Brett Conlon/HU/AU/SonyDADC wrote:

What I'm trying to do is have the file name, of the file/s dropped onto 

the droplet, appear in the display dialog window. When a user drops 

multiple files onto the droplet and it asks them to enter the DVD title, 

if it doesn't mention the name of the file it's working on then the user 

could enter the wrong title for the wrong file.


This works:

on open (theFiles)
    tell application "Finder"
        repeat with i from 1 to length of theFiles
            display dialog "Whatever prompt goes here." default answer (name of (item i of theFiles)) as text
        end repeat
    end tell
end open


-- 
Discordians don't pray: it is far too dangerous.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Just returning Filename... not whole path
      • From: Brett Conlon/HU/AU/SonyDADC <email@hidden>
References: 
 >Re: Just returning Filename... not whole path (From: Brett Conlon/HU/AU/SonyDADC <email@hidden>)

  • Prev by Date: Re: Just returning Filename... not whole path
  • Next by Date: Re: Days and hours
  • Previous by thread: Re: Just returning Filename... not whole path
  • Next by thread: Re: Just returning Filename... not whole path
  • Index(es):
    • Date
    • Thread