Re: Excel save as overwrites instead of saving with different filename?
Re: Excel save as overwrites instead of saving with different filename?
- Subject: Re: Excel save as overwrites instead of saving with different filename?
- From: Shane Stanley <email@hidden>
- Date: Wed, 13 Nov 2013 21:52:04 +1100
On 13 Nov 2013, at 7:51 PM, Nathan Bailey <email@hidden> wrote:
> It's particularly odd since the open inputFile bit works fine...
That's because the open command comes from the standard suite, and takes a reference. You're passing it a file, and it's happy with that.
Last I looked at the save as commands -- in an old version of Excel, so it might have changed -- they want text for the filename parameter, not a file.
Try something like:
set outputFile to (posix file newPathString) as text
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden