Monday, 22 September 2014

Applecript n00b, please help


i have written following script. no errors when test it, yet nothing happens when run it

code:
try 	 	 	 	tell application "finder" 		move file "/users/alexk/synctest/untitled3.rtf" folder "/users/alexk/dropbox/nupdftest" 		 		 	end tell end try
i have tried couple other things in place of duplicate (copy, move), yet no matter what, after running script not find file in target folder, "nupdftest"

edit: error "error number -1728 file "/users/alexk/synctest/untitled3.rtf"
i'm googling around find out means in context not having lot of luck. path absolutely correct, double , triple checked.

ideas going wrong here?
apologies in advance dumb question.. i've googled around , can't figure out what's bad script.
ps in case wondering why i've made such pointless script, it's part of process of figuring out why different script wasn't working, simplified eliminate sources of error.
 

the finder doesn't know posix paths, uses colon delimited hfs paths. can coerce posix files, or use system events.
 


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

No comments:

Post a Comment