• 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: Excel save as overwrites instead of saving with different filename?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Excel save as overwrites instead of saving with different filename? (From: Nathan Bailey <email@hidden>)

  • Prev by Date: Re: Mavericks: Long lag making new events in Calendar app
  • Next by Date: Smile Users List (SUL) is up again!
  • Previous by thread: Re: Excel save as overwrites instead of saving with different filename?
  • Next by thread: Email address to subscribe to Smile Users List (SUL)
  • Index(es):
    • Date
    • Thread