Send AppleScript-Users mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/applescript-users
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of AppleScript-Users digest..."
Today's Topics:
1. Script to select firefox menu item on startup (Joseph Jenkins)
2. Coercion from string to integer fails (Dan Doughtie)
3. RE: How to automatically acknowledge a dialog (Scott Babcock)
4. RE: auto Click Button (Scott Babcock)
5. Monitor resolution (Oakley Masten)
6. Re: Coercion from string to integer fails (Gary (Lists))
7. Re: Script to select firefox menu item on startup
(Malcolm Fitzgerald)
8. Re: Coercion from string to integer fails (Emmanuel)
9. Re: Script to select firefox menu item on startup (Joseph Jenkins)
10. Re: Script to select firefox menu item on startup
(Malcolm Fitzgerald)
11. Re: Script to select firefox menu item on startup (Joseph Jenkins)
12. Working with Word Document Properties (David Glass)
----------------------------------------------------------------------
Message: 1
Date: Thu, 31 May 2007 12:48:54 -0700
From: Joseph Jenkins <email@hidden>
Subject: Script to select firefox menu item on startup
To: email@hidden
Message-ID:
<email@hidden>
Content-Type: text/plain; charset="us-ascii"
Is it possible to create a script that when the mac starts up will
launch firefox and then choose a menu option within firefox? I have
tried searching unsuccessfully for this and I am hoping that it can
be done.
I am trying to create a standalone mac system that can be used a
network monitoring display. However to get the tabs within firefox
to toggle I need to have a menu option chosen. I don't know how to
get that menu option selected within firefox so I am hoping to do it
with Applescript.
TIA
Joseph Jenkins
Joseph Jenkins
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/mailman/private/applescript-users/attachments/20070531/fb5f53ea/attachment.html
------------------------------
Message: 2
Date: Thu, 31 May 2007 16:52:10 -0400
From: Dan Doughtie <email@hidden>
Subject: Coercion from string to integer fails
To: Applescript Users <email@hidden>
Message-ID: <C284ADBA.3F2D7Úemail@hidden>
Content-Type: text/plain; charset="ISO-8859-1"
I have a script that reads in a preference from a text file.
The preference is basically the number of seconds since midnight.
I read the number from the file as text which makes it string.
I try to force it to an integer so I can do some math.
No matter what I do it fails and says it canπt make ≥49900≤ into type
integer. (49000 being the text from the file).
This set statement falls within a Tell Finder.
This is the part of the script that fails
open for access file MyPrefsFile
set myFolderToWatch to read file MyPrefsFile before "
"
set MyPrefsFolder to myFolderToWatch
set myCharCount to count of MyPrefsFolder
set MyPrefsInfo to read file MyPrefsFile from myCharCount + 2 to eof
set myTimeToRun to MyPrefsInfo
close access file MyPrefsFile
set myTimeToRun to myTimeToRun as integer
All this script does is monitors a folder and if it finds something during a
time period it will use CURL to FTP a file in a monitored folder.
Anyone know of a smoking gun?
Dan