I need help. Can someone help me to write a script to automate work tasks?
I d’ont seem to find the right terms to write a script, I’m always stuck with error nessages.
I’ve downloaded 28 thousands text songs in a folder on my desktop as files, what i’m tryng to do is copy these files as text in a file Maker document applcaton.
Here is a sample, of what I’m trying to do
FileMaker
(Book) next “Go to next record”
Go to “Artiste 2006” , Move to window “Artiste 2006”
open new selection “File Name”
Select “Fichier”
Move to
Select “Tag colour”
add “blue color” to file name
Move to window “Artiste 2006”
Open “Fichier”
open new selection “File Name” with “Safari” Double click on the File
Select first letter of text After un retour de chariot vide
Copy text
Close window
Paste text in open selection of “FM.Musique 1”
Loop
End tell
Similar, but with adifferent application
FileMaker
(Book) next
Go to “Artiste 2006” , Move to window “Artiste 2006”
open new selection “File Name”
Select “Fichier”
Move to
Select “label”
add “blue color” to file name
Open “Fichier”
Open file with “Safari”
Press and hold “MAJ” key
Select first letter of text
Copy text
Close window
Paste text in open selection of “FM.Musique 1”
Loop
End tell
Window 1
(Book)
Go to[Artiste]
Move to window [Artiste]
open [selection]
Select [Fichier]
Move to [Tag]
Choose “Label”
add “blue color” to file name
Open “file”
Open file with “Safari”
Press and hold “MAJ” key
Select first letter of text
Copy text
Close window
Paste text at “FM.Musique 1”
End tell
Loop
End tell
I’d apprecate very much any help I can get, you can either answer me by e-mal, or by phone
1-819-327-3210
My name is François
e-mail address fboudreau1@hotmail.com
Model: i Mac
AppleScript: 2.0 (v43.1)
Browser: Safari 125
Operating System: Mac OS X (10.3.9)
Hi! Its me François
When i reach the point of “Copy selected text”
The return error message is the following “Misscopy”
And the “paste action” in FileMaker wont work
Thanks for your help, folks.
Hi! Its me François
When i reach the point of “Copy selected text”
The return error message is the following “Misscopy”
And the “paste action” in FileMaker wont work
Thanks for your help, folks.
Sorry about that, i’ve made a mistake in the error message.
tell application “Finder”
activate
open folder “MIREILLE MATHIEU” of folder “Sample Artiste 2006” of folder “Desktop” of folder “francoisboudreau” of folder “Users” of startup disk
end tell
tell application “Finder” to set label index of folder “MIREILLE MATHIEU” of folder "ARTISTE 2006 " of folder “Desktop” of folder “francoisboudreau” of folder “Users” of startup disk to 2
tell application “Finder”
activate
open first item of folder “MIREILLE MATHIEU” of folder "ARTISTE 2006 " of folder “Desktop” of folder “francoisboudreau” of folder “Users” of startup disk
end tell
tell application “Finder” to set label index of first item of folder “MIREILLE MATHIEU” of folder "ARTISTE 2006 " of folder “Desktop” of folder “francoisboudreau” of folder “Users” of startup disk to 4
tell application “Safari” to set S to text of document 1
activate “menu BAR”
activate “EDIT”
activate “select all”
activate “EDIT”
activate “COPY”
tell application “Safari”
activate
close window 1
end tell
tell application “Finder”
activate application “FileMaker Pro”
end tell
tell application “Finder”
activate “menu BAR”
activate file “FM.MUSIQUE 1 .fp7”
open file “FM.MUSIQUE 1 .fp7”
end tell
tell application “FileMaker Pro”
activate “menu BAR”
activate “Edit”
activate “paste”
paste (text from clipboard to window 1)
end tell
Hi! out there It’s me again, François
I’ve tried the following instructions
tell application “Safari”
get every text of document 1,
((and it didn’t do exactly what I was expectig)), it copied the text to the “Event History” insted of copying it to the “File Maker” document, or the “Clipboard”.
Two more questions
How do I tell “File Maker” activate “Record” so I can paste the text into it? “File Maker” being open on the desk.
How can I open a document that is an "application TextEdith " with "application Safari "?
Any ideas?
For the color label, it worked fine
Thanks for the Help
Sincerely yours
François