Apple script finder problem


hello, im trying write script creates folder , lets user name , choose location create it.
script:
tell application "finder"
set thefolder make new folder @ dekstop
set thename text returned of
(display dialog "folderio pavadinimas" default answer "")
set loc choose folder "pasirinkite folderio lokacija"
end tell
solutions how improve program , make work?
 

you can try this.

code:
 set theloc choose folder prompt "just testing" set thename text returned of (display dialog "enter name of folder create: " default answer "test") tell application "finder"    -- insert actions here    if not (exists folder thename of theloc)        set thefolder make new folder @ theloc properties {name:thename}    end if end tell  
note: not @ home , not tested. there's more 1 way result need. @ finder , standard additions dictionaries.

info : the first step
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

How much is my cMP worth?

"siriknowledged" crashing. Anyone seen this?

Need some help - Google search