# Applescript help!

**URL:** https://forum.kirupa.com/t/applescript-help/10807
**Category:** random
**Created:** [January 7, 2003, 7:32pm UTC](https://forum.kirupa.com/t/applescript-help/10807 "2003-01-07T19:32:39Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![cookie](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@cookie](https://forum.kirupa.com/u/cookie)
#### Post date: [January 7, 2003, 7:32pm UTC](https://forum.kirupa.com/t/applescript-help/10807/1 "2003-01-07T19:32:39Z")

</div>

HI

Can some Mac OSX user help me write a simple actionscript to:

1. open a folder
2. open each file in folder
3. print each file
4. close all files

I have done 1. but I don’t know how to do the rest!

tell application “Finder”  
open folder “folder1”  
end tell  
Thanks

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 7, 2003, 7:36pm UTC](https://forum.kirupa.com/t/applescript-help/10807/2 "2003-01-07T19:36:52Z")

</div>

I’m using a program called Mathematica and I have worked on a huge project which I have saved as several files! Now instead of opening each one and printing I wanted a script to do it! ☹

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 7, 2003, 7:38pm UTC](https://forum.kirupa.com/t/applescript-help/10807/3 "2003-01-07T19:38:19Z")

</div>

Hmm… Wrong thread to be in but…

I have no clue… Windows man… Windows… Blah to the Macs… Sorry… Off topic but yeah…

Looks like you are on the right way… Just mix it up a little bit and keep trying things.

FSCommand might be what you wnana look at too… I think it has printing commanbds for that?

AM I wrong?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 7, 2003, 7:53pm UTC](https://forum.kirupa.com/t/applescript-help/10807/4 "2003-01-07T19:53:55Z")

</div>

it can open and close, but on mac could be a lil harder :-\

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 7, 2003, 9:00pm UTC](https://forum.kirupa.com/t/applescript-help/10807/5 "2003-01-07T21:00:37Z")

</div>

> \*Originally posted by Phil Jayhan \*  
> **…Im thankful for windows.**

There’s something you don’t see often! 😛

I wish I could help you cookie, but I still haven’t gotten around to learning Applescript. I’m dying to get to it though - I have seen it do amazing things.

Try asking [these folks](http://groups.yahoo.com/group/macmentor/). They’re a helpful bunch.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 7, 2003, 9:01pm UTC](https://forum.kirupa.com/t/applescript-help/10807/6 "2003-01-07T21:01:00Z")

</div>

Macs are for people who eat granola and wear sandals.

I am PC all the way.

I find it amusing that the only advertising campaign that MAC can come up with, is to trash the competition with ugly, hairy, VW bug driving, bottlecap glass wearing loosers that only talk about how dumb they are, because they cant efficiantly run the windows operating system. Grrrr…

ok im done

🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 7, 2003, 9:02pm UTC](https://forum.kirupa.com/t/applescript-help/10807/7 "2003-01-07T21:02:27Z")

</div>

Hey, there’s no need to get nasty!

The guy asked a simple question, and didn’t mean to start another tired OS war. I doubt someone asking how to do a task in Windows would get the same kind of hate…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 7, 2003, 9:18pm UTC](https://forum.kirupa.com/t/applescript-help/10807/8 "2003-01-07T21:18:02Z")

</div>

Macs have ups and downs, and Windows has ups and downs, no need to discriminate :-\

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 7, 2003, 9:23pm UTC](https://forum.kirupa.com/t/applescript-help/10807/9 "2003-01-07T21:23:15Z")

</div>

I have respect for the Mac! Use 3ds max on a Mac and then on an average PC. Cuts down rendering and the graphics are amazing, besides that I like my PC. Wouldn’t mind having both! It is fast for games and you never have to worry about locking up, you won’t like it until you own one…enough said!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 7, 2003, 9:26pm UTC](https://forum.kirupa.com/t/applescript-help/10807/10 "2003-01-07T21:26:05Z")

</div>

I wouldn’t mind having both either. I would drool over a mac with OSX (didn’t like whatever OS we had in school, it kept crashing on me…grrr, but OSX is good!).

Mac for my graphics, PC for everything else. Oh what a dream set up that would be 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 7, 2003, 9:48pm UTC](https://forum.kirupa.com/t/applescript-help/10807/11 "2003-01-07T21:48:09Z")

</div>

yeah, both have their advantages and disadvantages =)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 7, 2003, 11:09pm UTC](https://forum.kirupa.com/t/applescript-help/10807/12 "2003-01-07T23:09:09Z")

</div>

One thing I dislike about Mac’s, is that one-button mouse 😛

I’d never get used to it =)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 7, 2003, 11:35pm UTC](https://forum.kirupa.com/t/applescript-help/10807/13 "2003-01-07T23:35:46Z")

</div>

Hmm… last I checked two button, and even _gasp_ scroll-buttoned mice (?) worked with my Mac… C:-)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 7, 2003, 11:41pm UTC](https://forum.kirupa.com/t/applescript-help/10807/14 "2003-01-07T23:41:35Z")

</div>

I was a PC user for a very long time, but approx. 2 years ago I switched to MAC and I will never go back! For example, just look at the design of Mac computer compared to PCs. Show me a PC notebook with the same style, and elegance as the new PowerBook:

> **[Mac](https://www.apple.com/mac/)**
>
> Explore the world of Mac. Check out the MacBook Pro, iMac Pro, MacBook, iMac, and more. Visit the Apple site to learn, buy, and get support.

And show me a PC notebook with the same performance! Don’t waste your time looking because there isn’t ONE! =)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 7, 2003, 11:44pm UTC](https://forum.kirupa.com/t/applescript-help/10807/15 "2003-01-07T23:44:18Z")

</div>

Try turning a mac into a good web server for hosting and such, good luck 😉

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 7, 2003, 11:45pm UTC](https://forum.kirupa.com/t/applescript-help/10807/16 "2003-01-07T23:45:56Z")

</div>

You have NO IDEA what you are talking about dan! Mac OS X Server is the leading server on the market!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 7, 2003, 11:57pm UTC](https://forum.kirupa.com/t/applescript-help/10807/17 "2003-01-07T23:57:07Z")

</div>

I prefer Linux, it’s an opinion, I think you have NO IDEA what you are talking about!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 8, 2003, 12:00am UTC](https://forum.kirupa.com/t/applescript-help/10807/18 "2003-01-08T00:00:05Z")

</div>

We ran on a Mac server at school…

Linux is better server material in my opinion too.

And… aren’t Linux servers the leading servers on the market? Everywhere I look they are Linux servers. Never seen a Mac OS X server (except the one at school, but that wasn’t OSX, it was a lower version, and was horrible).

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 8, 2003, 12:21am UTC](https://forum.kirupa.com/t/applescript-help/10807/19 "2003-01-08T00:21:34Z")

</div>

What setup? Apache is in there and it’s all ready to go - just push a couple buttons in settings. It’s no more difficult than trying to set up IIS on Windows - I personally think it’s easier. Didn’t we have this discussion via AIM Dan? 😛

Although I don’t disagree with you on Linux - simply because I personally haven’t tried it yet. Don’t knock it 'til you try it - I used to hate Macs. And even though I don’t exactly have an opinion about Linux, I like that it’s out there. I like the option, an alternative to Windows.

Anyway - why are we talking about this? The guy asked a question about **Applescript**. Cookie - did you check out that link I posted earlier? There’s a guy there, Dave, who seems to know a bit about Applescript. He might have a solution to your problem.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 8, 2003, 12:25am UTC](https://forum.kirupa.com/t/applescript-help/10807/20 "2003-01-08T00:25:04Z")

</div>

I like both, but I have a PC, I’m 17 so I just can’t go out and buy once when I want to 😉

[Next page](https://forum.kirupa.com/t/applescript-help/10807.md?page=2)
