|
|
Applescript bring filemaker to the front
(This message was posted as a new thread on 29-9-04 but for some
reason attached to a thread 5 years old ??? Sorry apologies if you
have already read this)
Just wondering if anyone has any ideas about this.
I've created a web/filemaker solution where we have print orders using
pdf files made on the web via lasso pages. When the order is submitted
lasso saves a txt file on the web server and also uploads/saves a pdf
file on the server also.
Using FTPit and oAzium Events Filemaker automatically checks the
webserver, detects the new files sitting there and downloads the
relevant information, decodes the text file, creates a new job sheet
and prints it out, downloads the pdf file and copies it to our
fileserver and our digital print machine.
OK thats the background the problem lies in making sure that the
volumes for the fileserver and the RIP are available on the desktop.
I've almost got a script working where an applescript is called with
the following:
tell application "Finder"
activate
select file "RIP" of folder "Recent Servers" of folder "Apple Menu
Items" of folder "System Folder" of startup disk
open selection
select file "FileServer" of folder "Recent Servers" of folder "Apple
Menu Items" of folder "System Folder" of startup disk
open selection
close container window of disk "FileServer"
close container window of disk "RIP"
end tell
tell application "Filemaker Pro"
activate
end tell
The first part of the script works fine by calling the volumes from
the 'Recent Servers' in the Apple Menu, it then closes the windows to
keep things tidy.
The second part of the script calls Filemaker back to make it the
front most application. Visually it works fine, Filemaker appears to
come back to the front, menu and all. But when a subscript is called
to print the newly made jobsheet ,the application icon on the top
right corner of the menu bar just flashes and filemaker doesn't print
until you click on the foremost window (which is already at the
front).
Apologies if this is a bit long winded but I think some background is
necessary to show what I am trying to acheive.
Thanks in advance for any help offered.
Dave
|
|
0
|
|
|
|
Reply
|
dave
|
9/30/2004 7:21:07 AM |
|
On 30 Sep 2004 00:21:07 -0700, Dave Gregory wrote:
> tell application "Filemaker Pro"
> activate
> end tell
> The second part of the script calls Filemaker back to make it the
> front most application. Visually it works fine, Filemaker appears to
> come back to the front, menu and all. But when a subscript is called
> to print the newly made jobsheet ,the application icon on the top
> right corner of the menu bar just flashes and filemaker doesn't print
> until you click on the foremost window (which is already at the
> front).
>
> Apologies if this is a bit long winded but I think some background is
> necessary to show what I am trying to acheive.
I'll have to check later on - I do something similar without problems
(renaming PDF files printed from FMP via the Finder).
However, here's another question: How do you extract the name of the
current, running application? My database program may be called e.g.
FileMaker, FMP7 or any other name. Thus I'd like to set the application
"Filemaker Pro" via a suitable variable.
Regards
Martin
|
|
0
|
|
|
|
Reply
|
Martin
|
9/30/2004 9:18:37 AM
|
|
|
1 Replies
370 Views
(page loaded in 0.042 seconds)
|
|
|
|
|
|
|
|
|