How can I use automator to copy and paste excel content to a new empty document?
Hi,
I would like to copy and paste the content from an excel file to another empty new document using automator, which I created a workflow like below
get specific finder item
open excel workbook
select cell from excel workbook (all content)
obtain selected content from workbook
copy to pasteboard the content of excel workbook
close the excel workbook
create new excel workbook
paste copyboard content to excel workbook
can anyone kindly suggest what's wrong with this workflow?
Thank you so much
Eddy
(i know this is a number place but I couldn't find any excel seciton sorry guys...)
now it only does one file at a time, whereas I would like to do multiple files simultaneously.
If you try a search for "loop Automator" and also "folder actions" you may find some usable pointers on how to do that. The first example on this page looks promising.
SG
Similar Messages
-
How do I use snapshot or copy and paste an image in Adobe reader with windows 8?
Two things:1) how do I copy and paste images from a PDF into an email? It will not let me do it anymore. Also, how do I save a PDF document with all it's content? Now when I save a proof part of the content is not there when opened in CS6.
Check the document properties; is copying allowed?
-
How can I use Automator to open and save Word docs with links?
Hi-
I'm having trouble building a Workflow to open and save Word docs with links.
My Workflow so far:
1. Get Finder items
2. Copy Finder items (to new folder)
3. Rename selected items
4. Open selected items (Word docs)
Three problems occur.
The first is a Word 2004 problem -- I can't get the warning "This document has links in it; do you want to open it with/without updating the links" to go away (Unilke the Macro warning toggle capability, there is nothing in the Preferences for Word 2004 that addresses the links warning, as far as I can tell; any insight you can shed on this would be terrific.)
The second problem happens with Automator: if I manually accept the update of the first document's links, Automator opens that document but then halts completely, even though I've instructed it to open multiple documents.
The third problem I have is that there's no Finder action in Automator that allows me to save the document that's now open (as far as I can see).
Any suggestions for how to fix? If I can get this to work, and scheduled in iCal, it will be an unbelievable time saver.
Thanks,
Jeremy
PowerPC G5 Mac OS X (10.4.6)Hi there Jeremy,
to do this you are going to have to add in some Run AppleScript steps...
These will rely on GUI Scripting. So first you need to activate GUI Scripting.
Now we need to add in a Run AppleScript action to the end of your workflow...
This will replace your current number 4 in the workflow (Open Selected...)
click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">on run {input, parameters}
set allItems to every item of input
repeat with currItem in allItems
tell application "TextWrangler"
open currItem
end tell
activate application "TextWrangler"
tell application "System Events"
tell process "TextWrangler"
delay 2
--when the Word document is opened I have told it to press okay !
--I don't know what key you want it to press in the dialog box
keystroke return
delay 2
--save the doc
keystroke "s" using command down
delay 5
--close the doc
keystroke "w" using command down
end tell
end tell
end repeat
return input
end run</pre>
The above script should open each Word Document, press a button in the dialog box then do a save and then close the doc...then loop through the rest of them.
You need to replace the name Text Wrangler with Microsoft Word (or whatever it is called!), I don't have it on my Mac.
You will have to let me know what button needs pressing in the first dialog, if it isn't the 'highlighted ' one then we will have to amend the script...
regards
Ric -
How can I use Automator to extract specific Data from a text file?
I have several hundred text files that contain a bunch of information. I only need six values from each file and ideally I need them as columns in an excel file.
How can I use Automator to extract specific Data from the text files and either create a new text file or excel file with the info? I have looked all over but can't find a solution. If anyone could please help I would be eternally grateful!!! If there is another, better solution than automator, please let me know!
Example of File Contents:
Link Time =
DD/MMM/YYYY
Random
Text
161 179
bytes of CODE memory (+ 68 range fill )
16 789
bytes of DATA memory (+ 59 absolute )
1 875
bytes of XDATA memory (+ 1 855 absolute )
90 783
bytes of FARCODE memory
What I would like to have as a final file:
EXCEL COLUMN1
Column 2
Column3
Column4
Column5
Column6
MM/DD/YYYY
filename1
161179
16789
1875
90783
MM/DD/YYYY
filename2
xxxxxx
xxxxx
xxxx
xxxxx
MM/DD/YYYY
filename3
xxxxxx
xxxxx
xxxx
xxxxx
Is this possible? I can't imagine having to go through each and every file one by one. Please help!!!Hello
You may try the following AppleScript script. It will ask you to choose a root folder where to start searching for *.map files and then create a CSV file named "out.csv" on desktop which you may import to Excel.
set f to (choose folder with prompt "Choose the root folder to start searching")'s POSIX path
if f ends with "/" then set f to f's text 1 thru -2
do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & " > ~/Desktop/out.csv
use strict;
use open IN => ':crlf';
chdir $ARGV[0] or die qq($!);
local $/ = qq(\\0);
my @ff = map {chomp; $_} qx(find . -type f -iname '*.map' -print0);
local $/ = qq(\\n);
# CSV spec
# - record separator is CRLF
# - field separator is comma
# - every field is quoted
# - text encoding is UTF-8
local $\\ = qq(\\015\\012); # CRLF
local $, = qq(,); # COMMA
# print column header row
my @dd = ('column 1', 'column 2', 'column 3', 'column 4', 'column 5', 'column 6');
print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
# print data row per each file
while (@ff) {
my $f = shift @ff; # file path
if ( ! open(IN, '<', $f) ) {
warn qq(Failed to open $f: $!);
next;
$f =~ s%^.*/%%og; # file name
@dd = ('', $f, '', '', '', '');
while (<IN>) {
chomp;
$dd[0] = \"$2/$1/$3\" if m%Link Time\\s+=\\s+([0-9]{2})/([0-9]{2})/([0-9]{4})%o;
($dd[2] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of CODE\\s/o;
($dd[3] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of DATA\\s/o;
($dd[4] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of XDATA\\s/o;
($dd[5] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of FARCODE\\s/o;
last unless grep { /^$/ } @dd;
close IN;
print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
EOF
Hope this may help,
H -
How can I use Applescript to copy a file's icon to the clipboard?
Hello,
How can I use Applescript to copy a file's icon to the clipboard?
Thanks.
Lennoxthere is no way to do that that I know of. but you can extract an icon of a file to another file using command line tool [osxutils|http://sourceforge.net/projects/osxutils]. you can then call the relevant command from apple script using "do shell script".
-
How can I use both, Windows PC and iMac, when using WiFi?. It is either-or. What can I do?
What does this have to do with using an iPad?
But yes, you should be able to connect to your home WiFi network with multiple computers and devices. In my house my wife, my daughter and I will all be using the WiFi Internet connection at the same time with our Laptops and I will also be using my iPad, my daughter uses her iPhone, and we have no issues at all.
Is this what you want to know about? -
How can i use Nikon D 7100 and Panasonic Lumix DMC-LF1 with Photoshop CS 5 Camera Raw?
How can i use Nikon D 7100 and Panasonic Lumix DMC-LF1 with Photoshop CS 5 Camera Raw?
The one needs 7.4 (or better), the other 8.1, so Photoshop CS5 with ACR6 is not up to the task.
The free DNG Converter could be used to convert the RAW images to DNG which your version of ACR should be able to process. -
How can i use my iPhone 4 and connect via bluetooth with my macpro
how can i use my iPhone 4 and connect via bluetooth with my macpro
The only way that you can connect your iPhone to the mac is to use it for a "Wi-fi hotspot" meaning that you can use the celluar connectivity of your phone to connect your computer to the interent.
Do you mean a MacBook Pro of the desktop MacPro? -
How can a use a itunes soft. and create a new id
how can a use a itunes soft. and create a new id itunes ?
and
we are update the lattest version in my iphone 3gs 16gb ?
how can backup my iphone and install other application ?
pls. reply me .
jayesh panchalIt is not possible to delete an apple id completely. You can only delete information like credit card, adress, name... To do this, go to iTunes Store, click on your email adress in the upper right corner and enter your password. Now you can manage your account.
An apple id without password is not possible. -
I used to be able to copy and paste images from the internet into keynote slides and pages. Now when I copy and paste all I get is an empty box. My iskysoft iTube studio has also stopped downloading videos. Is there an extension I need to enable? Any ideas
Try dragging the image to the desktop, then drag the image to the slide you want it on
-
why did apple mail get much worse with lion osx? I can't add recipients without copy and paste?
I went through updates on my three newest Macs this week. As I stated I'm talking about iTunes 10.5.1 (42). I am checking for updates now and I see 10.5.2 is now available. I'll know in about 15 minutes if this issue is fixed or not.
15 minutes later:
I must have updated this PPC G5 a day or two before iTunes 10.5.2 came out. I was able to update to 10.5.2 (11) and this copy/paste bug is fixed. I'm happy again.
Tracy -
Is there a way to copy and paste excel table contents to a pdf table form?
Is there a way to copy and paste excel table contents to a pdf table form?
It's not something I have tried before. Have you tried it, and what's happened?
Basically, copy/pasting tables is a bit of a problem - anywhere. Table formats are different in different circumstances - Excel, HTML, PDF, ...
If you copy a HTML table and paste it into an Excel sheet, the entire table will go into one single cell.
So most likely what you are trying to achieve will not work. -
I wish to close down one email account but have no time to indivuidaully send emails out piecemeal to my newly set-up email address/account.
I want to keep the same InBox and Sent data columns as I have always had with dates associated with each email.
I was told that setting up Thunderbird to deal with emailing can facilitate this copying and pasting between two accounts.
Once done I wish to close my first email account ( its unfortuneately contractually linked to my old iphone 4 and I have changed cell phone companies so I am still keeping that account alive while I sort out how to move my data out into my new email account) and stick to using the new account.
Both are yahoo.co.jp email accounts. Yes, I live in Japan.
The Thunderbird program seems to have accessed and stored all of my email data . It did so quickly.
Please advise what to do next.
Thanks
JWtwo ipods wrote:
I have my husband Iphone and an Ipad on one account. I have my own phone on another account. I want to move the Ipad from my husbands account to my account so I can purchase him an Ipad2 and I can use the old one with all the settings and apps as they are now and then update with my contact information.
How do I do this?
He will run into a problem when he wants to use his own account. Some apps will have been purchased on one Apple ID and other apps will have been purchased on a different Apple ID. That's a nuisance situation when the apps need updating and, unfortunately, there is no resolution at the present time (IDs can not be combined). -
How can I use automator to import a .csv file into a an excel file
I would still like all the import settings that I get if I am using excel to do the process, i.e. going in with the text format instead of the general format. That way my dates don't change
You'll need to use Applescript in Automator.
Note: File extension cannot be CSV (Excel will assume that the file is comma separated), so add an action to copy or rename with extension TXT.
(You can rename back at end of Workflow is needed)
The Applescript Action is:
on run {input, parameters}
repeat with f in input
tell application "Microsoft Excel"
open text file filename (f as string) data type delimited field info {{1, text format}} other char "|" with use other
end tell
end repeat
eturn input
end run
NOTE: This is formating the 1st col to text
If you need to format the second, then you need to:
open text file filename (f as string) data type delimited field info {{1, general format}, {2, text format}} other char "|" with use other
(You'll need to list the 1st col, 2nd col, etc until you get to the col to format as text). Formats are (from the Applescript Excel Library):
[field info list] : A list contain parse information for the individual columns of data.
Formats are general format, text format, MDY format, DMY format, YMD format, MYD format, DYM format, YDM format, skip column.
Or you can skip using Automator and just use an Applescript App (this is a droplet, just drop the files on the icon, or click to choose files):
on run
set fs to choose file with prompt "Select one or more files to open:" default location alias (the path to desktop folder as text) with multiple selections allowed
proceed(fs)
end run
on open fs
proceed(fs)
end open
on proceed(fs)
repeat with f in fs
tell application "Microsoft Excel"
open text file filename (f as string) data type delimited field info {{1, text format}} other char "|" with use other
end tell
end repeat
end proceed -
I have a passport external hard. previously, I used it on windows, then I changed my laptop to mac. Now, It's only read. How can I use it on my mac for copying files on my passport? I don wanna use it on windows again.
If you're not going to use the drive on a Windows machine, you should use Disk Utility (Applications>Utilities folder) to erase the drive and format it as "Mac OS Extended (Journaled)" with a single GUID partition (default):
Good luck,
Clinton
Maybe you are looking for
-
I broke my iPhone and now using my grandson's old iphone 3. I inserted my sim and it works but when I plug into the computer, iTune's still recognizes the phone as my grandson's phone and won't recognize my music and apps on iTunes. How do I fix this
-
Hello, how can I save userparameters and userroles? We use a CUA. After a client Copy i have to create all parameter and roles for all the users in this client new! How can i solve this problem?
-
How to create contact person with BAPI_ADDRCONTPART_SAVEREPLICA
Dears, when using BAPI BAPI_ADDRCONTPART_SAVEREPLICA to create contact person,it exports the PERSON_NUMBER and ADDRESS_NUMBER, but no record found in table KNVK for customer or vendor . The parameters is as below, CALL FUNCTION 'BAPI_ADDRCON
-
After the latest E72 firmware update, when sending email, the message that I have sent does NOT appear in the sent items box. This is only the case with the "master account" with which I registered at email.nokia.com. When sending emails from one of
-
How to install windows 7 Firefox without "Ask search" and other software?
I would like to install pure Firefox, lean without getting other add-on software, such as "Ask search". I am requesting download from Mozilla home page. Thank you for helping.