• 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
Choose location dialog - view as html
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Choose location dialog - view as html


  • Subject: Choose location dialog - view as html
  • From: Daniel <email@hidden>
  • Date: Wed, 19 Mar 2003 10:21:06 +1000

Does anyone have some straight forward code for a choose location of folder
dialog, i also need a new folder option on the dialoge which would return be
similar to the first IF statement.

I started writing something but got a little lost:
tell application "Finder"
display dialog "Backup Location" buttons {"New Folder", "Cancel",
"Choose"}
set rslt to result
if button returned of rslt is "New Folder" then
display dialog ("Folder Name - You must enter name here") default
answer ""
set rslt2 to result
set nf to (text returned of rslt2)
make new folder
select folder "untitled folder"
set name of selection to nf

else

if button returned of rslt is "Choose" then
display dialog "Choose Destination for backup files" ## this is
what I need,this If statement doesn't make any sense to me
get id of selected
set dir to result The result would be the directory to place the
files
set nf to item whose id is dir
end if
end if

get id of (every item of the entire contents of folder "DR's Files")
whose label is 6
set recentjobs to result
copy ((every item of the entire contents of folder "DR's Files") whose id
is in recentjobs) to item nf

end tell

if anyone can help it would be appreciated

Daniel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Choose location dialog - view as html
      • From: Christopher Nebel <email@hidden>
    • Re: Choose location dialog - view as html
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: Eudora users - Did you know that...
  • Next by Date: Re: Active Application -Smile-
  • Previous by thread: Re: how do I read values in a dropdown( ie pop up button) list out?
  • Next by thread: Re: Choose location dialog - view as html
  • Index(es):
    • Date
    • Thread