AppleScript how to perform a task on every Numbers file in a folder


(*
hello!

wrote following script in order perform same task on every numbers file in folder not work. correct me?

1 thing think of might need specify file type numbers recognize them, didn't know , how.

thing suspected of made conflication between finder , numbers. again don't know how did if problem.

in advance can me solve problem!
*)


tell application "finder"
set myfolder alias ((path desktop folder text) & "tata")
set mylist every file in myfolder

tell application "numbers"
repeat 1 length of mylist
set openeddoc open file of mylist
tell openeddoc tell sheet 1 tell table 1
delete (rows 80 thru 61)
end tell
close openeddoc
end repeat
end tell

end tell
 



Forums Macs macOS macOS


  • 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

Mac OS X Server as File Server for 50/50 Mac & PC Workgroup

Permissions Problem?

iPhone won't sync with iTunes