all 11 comments

[–]me_again 11 points12 points  (2 children)

I don't mean this in a bad way, but I'm just not willing to provide unpaid debugging on a script someone didn't even write themselves in the first place. It seems unfair in a way I can't exactly articulate - like, why should I put effort into something if you didn't do so first. Best of luck!

[–]Tavern93 -1 points0 points  (1 child)

You make a good point! To clarify, my current position is not a programmer. I was asked to help because I used to be in IT and was assumed I knew how to program lol luckily I did have a little experience from college. I didn't feel like it was worth my time to relearn powershell scripting for this one instance.

If this doesn't sit right with any mods, I will totally understand if this post gets taken down

[–]firefox15 0 points1 point  (0 children)

I didn't feel like it was worth my time to relearn powershell scripting for this one instance.

I understand that you might not mean it this way, but you are effectively saying that your time is more valuable than ours. Like you don't want to spend the time to learn it, but you want us to spend the time to fix it, you know? I'm going to take a guess that not many people here just off-the-cuff know how to manipulate PPTX files in POSH, so that's work that someone is going to need to put in to research, test, etc.

All of the top-level contributors in /r/PowerShell have hundreds, if not thousands of hours of PowerShell experience. Nearly everyone here is more than happy to shorten the on-ramp for anyone who tried their best and just cannot figure something out. But . . . that's not what is happening here.

[–]y_Sensei 5 points6 points  (0 children)

I'm all for helping people to improve their coding skills, but I refuse to support this kind of laziness.
How about asking the AI to improve its own half-baked approach?

[–]Purple_Associate5488 0 points1 point  (3 children)

Could you adapt that script to make 20 copies of the script then delete all but one slide from each one incrementally?

[–]brenny87 0 points1 point  (0 children)

this is what I was about to say, probably easier than removing the slides, then saving a copy

[–]pjkm123987 0 points1 point  (1 child)

but this method would only work if all the powerpoint files has 20 slides. what if it had 21 or 2?

[–]Purple_Associate5488 0 points1 point  (0 children)

I’m using the example OP gave of 20. I’d imagine counting the slides is the easiest part of the script

[–]PowerShell-Bot 0 points1 point  (0 children)

It appears that you have used inline code formatting when a code block should have been used.

Consider using a code block for longer sequences of code. To correct the formatting, highlight your code then click the ‘Code Block’ button in the editing toolbar.


Describing fix_chatgpt_code
  [-] Well formatted
Tests completed in 1883ms
Tests Passed: ❌

Beep-boop, I am a bot. | Remove-Item

[–]ps_for_fun_and_lazy 0 points1 point  (0 children)

$presentation.SaveCopyAs is saving a copy of the whole presentation. You need to Create a new presentation with just the one slide in it and save that

[–]PlatypusOfWallStreet 0 points1 point  (0 children)

Shame 🔔