Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > AppleScript help please.

AppleScript help please.
Thread Tools
Senior User
Join Date: May 2000
Location: Australia
Status: Offline
Reply With Quote
Oct 29, 2000, 10:54 PM
 
Okay. I want to create some little scripts that I can use to change type and creator codes.
For example: I have an incomplete download and want to look at it with a certain App. Say it's a jpeg. I want to drag this file onto a script (a droplet) and change it's type code to "JPEG" and it's creator code to "GKON".

I don't want it to ask me what I want to change it to, just change it into one certain type/creator. I will use multiple ones for different file types that I need.

I tried doing it myself but I failed
I need some help please.
     
DocWest  (op)
Senior User
Join Date: May 2000
Location: Australia
Status: Offline
Reply With Quote
Oct 29, 2000, 11:04 PM
 
D'oh!!

Don't Worry about it. I found out by searching the forums.
Golden Rule #1: Always Search The Fora First

Here's the answer if anyone wants to know. Thanks to tapopen!
---------------------------------------------------------------------
posted by tapopen on 07-09-2000 07:56 AM:

A useful script for converting several files to open automatically with BBEdit:

on open inputFiles
tell application "Finder"
repeat with x in inputFiles
set creator type of x to "R*ch"
set file type of x to "TEXT"
end repeat
end tell
end open
--------------------------------------------------------------------
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:02 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2