• 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: Run Script Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Run Script Error


  • Subject: Re: Run Script Error
  • From: Michael Terry <email@hidden>
  • Date: Sat, 6 Mar 2004 19:10:45 -0800

On Mar 6, 2004, at 6:37 PM, email@hidden wrote:

tell application "Microsoft Excel"
Activate
set RowNum to Row of ActiveCell
set ColNum to Column of ActiveCell
set FormulaR1C1 of ActiveCell to "Home Phone"
set ColNum to (ColNum + 1)
set NewRange to "R" & RowNum & "C" & ColNum
Select Range NewRange
set FormulaR1C1 of ActiveCell to "Home phoneb(bla) bla-blah"
set ColNum to (ColNum + 1)
set NewRange to "R" & RowNum & "C" & ColNum
Select Range NewRange
end tell
run script "OS X Boot:DOCUMENTS:AppleScripts:PerTaxScripts:PerCheckNum"


'run script' can take a file, a script object, or a string as parameter. If you pass it a string, it thinks the string is source code, so it tries to compile and run it. Try:

run script alias "path:to:file"

or

run script file "path:to:file"


Mike
_______________________________________________
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.


References: 
 >Run Script Error (From: email@hidden)

  • Prev by Date: Re: playing a sound
  • Next by Date: Listserv chars (was Re: Removing items from a list)
  • Previous by thread: Run Script Error
  • Next by thread: Re: Run Script Error
  • Index(es):
    • Date
    • Thread