Re: Run Script Error
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.