|
Related Topics:
| Help with script, please - Here is the script: tell set foo to the selection set foo to item 1 of foo set address_ to address of item 1 of to recipient of foo if not (name of item 1 of to recipient of foo exists) then set text..
Why this script doesn't work ? - The script: tell activate repeat set w to display dialog default answer set wSal to text returned of w display dialog wSal
Help with System Preferences script - From an obvious novice: I'd like to have a script for my wife that will 1.open the display and 2.select a certain screen and colors ( i.e. I can get as far as opening the pane but I can't..
"Insert" script for BBEdit 7.1 - Hello, I want to write a script for BBEdit 7.1 using the command from the menu. The purpose is to insert selected files in one open file. But when recording from the menu doesn't give any result. Looking at the I..
Excel Script help needed - Hello, Let me preface this with the statement that I am not that familiar with Macs, I have 20 years with PC's Servers, Unix etc, but not Mac. I do have a somewhat urgent need and hope somebody can help me, I can even pay if that is what it..
|
|
|
Next: Apple Scripts: Applescript to count certain things in a mail folder.
|
| Author |
Message |
External

Since: Jul 21, 2008 Posts: 2
|
(Msg. 1) Posted: Mon Jul 21, 2008 1:56 pm
Post subject: script to Open PageMaker 6.5 documents Archived from groups: alt>comp>lang>applescript (more info?)
|
|
|
I am trying to retire an old G4 running OS9.2 and PageMaker 6.5.
There a number of files on teh computer that need to be saved as
pdfs. I have managed to compile a script that will open all the files
in a folder, print the PageMaker files as .ps., and close all the
documents. There are two problems, one, too many files to open at one
time, and there are some files in the folders that do not have an
application on the Mac to open them, so the script times out. I would
like to just select the files to open to only PageMaker 6.5
documents. Any help would be appreciated.
Something along the lines of:
set files_print to every file in "Folder" whose application is "Adobe
PageMaker 6.5"
Thanks. |
|
| Back to top |
|
 |  |
External

Since: Aug 30, 2005 Posts: 804
|
(Msg. 2) Posted: Mon Jul 21, 2008 2:17 pm
Post subject: Re: script to Open PageMaker 6.5 documents [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
|
| This message is not archived
|
|
|
| Back to top |
|
 |  |
External

Since: Nov 05, 2007 Posts: 466
|
(Msg. 3) Posted: Mon Jul 21, 2008 5:42 pm
Post subject: Re: script to Open PageMaker 6.5 documents [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In article
<f6022cd0-87ae-4d64-aebb-d4760bab41e4 DeleteThis @t54g2000hsg.googlegroups.com>,
jjchristiansen DeleteThis @gmail.com wrote:
> I am trying to retire an old G4 running OS9.2 and PageMaker 6.5.
> There a number of files on teh computer that need to be saved as
> pdfs. I have managed to compile a script that will open all the files
> in a folder, print the PageMaker files as .ps., and close all the
> documents. There are two problems, one, too many files to open at one
> time, and there are some files in the folders that do not have an
> application on the Mac to open them, so the script times out. I would
> like to just select the files to open to only PageMaker 6.5
> documents. Any help would be appreciated.
>
> Something along the lines of:
>
> set files_print to every file in "Folder" whose application is "Adobe
> PageMaker 6.5"
I believe this is something along the lines of what you are thinking:
--begin script
tell application "Finder"
set files_print to every file of folder (POSIX file
"/Users/jr/Desktop/Some Folder") whose creator type is "AD65"
end tell
repeat with next_file in pm_files
tell application "Adobe PageMaker 6.5"
open next_file
end tell
end repeat
-- end script
Basically, you're telling the Finder to include only files created by
PageMaker 6.5 in the list. Then you just tell PageMaker to open each
file.
--
Send responses to the relevant news group rather than to me, as
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.
JR |
|
| Back to top |
|
 |  |
External

Since: Aug 30, 2005 Posts: 804
|
(Msg. 4) Posted: Mon Jul 21, 2008 7:12 pm
Post subject: Re: script to Open PageMaker 6.5 documents [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
This message is not archived |
|
| Back to top |
|
 |  |
External

Since: Nov 05, 2007 Posts: 466
|
(Msg. 5) Posted: Mon Jul 21, 2008 11:27 pm
Post subject: Re: script to Open PageMaker 6.5 documents [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In article <michelle-1192C1.19122321072008 DeleteThis @news.east.cox.net>,
Michelle Steiner <michelle DeleteThis @michelle.org> wrote:
> In article <jollyroger-762730.17424221072008 DeleteThis @news.individual.net>,
> Jolly Roger <jollyroger DeleteThis @pobox.com> wrote:
>
> > tell application "Finder"
> > set files_print to every file of folder (POSIX file
> > "/Users/jr/Desktop/Some Folder") whose creator type is "AD65"
>
> I didn't know the creator type or file extension of PageMaker files, so
> I used the try block to get around the problem.
Oh I wasn't implying your solution wasn't good enough. I just wanted to
show him that he wasn't all that far from getting his own code working
the way he wanted. ; )
--
Send responses to the relevant news group rather than to me, as
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.
JR |
|
| Back to top |
|
 |  |
External

Since: Nov 05, 2007 Posts: 466
|
(Msg. 6) Posted: Mon Jul 21, 2008 11:30 pm
Post subject: Re: script to Open PageMaker 6.5 documents [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In article <jollyroger-762730.17424221072008.TakeThisOut@news.individual.net>,
Jolly Roger <jollyroger.TakeThisOut@pobox.com> wrote:
> --begin script
> tell application "Finder"
> set files_print to every file of folder (POSIX file
> "/Users/jr/Desktop/Some Folder") whose creator type is "AD65"
> end tell
>
> repeat with next_file in pm_files
> tell application "Adobe PageMaker 6.5"
> open next_file
> end tell
> end repeat
> -- end script
Typo correction:
--begin script
tell application "Finder"
set pm_files to every file of folder (POSIX file
"/Users/jr/Desktop/Some Folder") whose creator type is "AD65"
end tell
repeat with next_file in pm_files
tell application "Adobe PageMaker 6.5"
open next_file
end tell
end repeat
-- end script
--
Send responses to the relevant news group rather than to me, as
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.
JR |
|
| Back to top |
|
 |  |
External

Since: Aug 30, 2005 Posts: 804
|
(Msg. 7) Posted: Tue Jul 22, 2008 12:36 am
Post subject: Re: script to Open PageMaker 6.5 documents [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
This message is not archived |
|
| Back to top |
|
 |  |
External

Since: Nov 05, 2007 Posts: 466
|
(Msg. 8) Posted: Tue Jul 22, 2008 8:30 am
Post subject: Re: script to Open PageMaker 6.5 documents [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In article <michelle-2F6357.00361322072008.TakeThisOut@news.east.cox.net>,
Michelle Steiner <michelle.TakeThisOut@michelle.org> wrote:
> In article <jollyroger-F1B446.23273721072008.TakeThisOut@news.individual.net>,
> Jolly Roger <jollyroger.TakeThisOut@pobox.com> wrote:
>
> > Oh I wasn't implying your solution wasn't good enough.
>
> I didn't think you were; in fact, I didn't know whether you had read
> mine when you wrote yours. I was merely explaining the reason I took
> the route that I did, just in case someone was curious.
Coolio. : )
--
Send responses to the relevant news group rather than to me, as
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.
JR |
|
| Back to top |
|
 |  |
External

Since: Jul 21, 2008 Posts: 2
|
(Msg. 9) Posted: Tue Jul 22, 2008 9:06 am
Post subject: Re: script to Open PageMaker 6.5 documents [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Jul 22, 8:30 am, Jolly Roger <jollyro....RemoveThis@pobox.com> wrote:
> In article <michelle-2F6357.00361322072....RemoveThis@news.east.cox.net>,
> Michelle Steiner <miche....RemoveThis@michelle.org> wrote:
>
> > In article <jollyroger-F1B446.23273721072....RemoveThis@news.individual.net>,
> > Jolly Roger <jollyro....RemoveThis@pobox.com> wrote:
>
> > > Oh I wasn't implying your solution wasn't good enough.
>
> > I didn't think you were; in fact, I didn't know whether you had read
> > mine when you wrote yours. I was merely explaining the reason I took
> > the route that I did, just in case someone was curious.
>
> Coolio. : )
>
> --
> Send responses to the relevant news group rather than to me, as
> E-mail sent to this address may be devoured by my very hungry SPAM
> filter. Due to Google's refusal to prevent spammers from posting
> messages through their servers, I often ignore posts from Google
> Groups. Use a real news client if you want me to see your posts.
>
> JR
Thanks guys. I was able to get to work by adding the creator type is
"AD65". I was certain I had tried that, But I might have used file
type is "AD65." I had been trying to find what the code for PageMaker
was and I am sure it was written down somewhere at one time, but I had
started attempting other codes.
Now I will work on the Distiller script to process the ps files.
Jared |
|
| Back to top |
|
 |  |
|