• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Filtering by author and file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filtering by author and file


  • Subject: Re: Filtering by author and file
  • From: CYB <email@hidden>
  • Date: Wed, 22 Aug 2007 21:44:39 -0500
  • Thread-topic: Filtering by author and file

Ignacio,

I can't see any way to get the author information from the Finder, this info
is accessible from Word
tell application "Microsoft Word"
    value of document property 3 of active document
end tell
--> "Carlos Ysunza" in my case
So you or your script needs to open the doc in word and get this info and
then use the Finder to do the rest of the job.
Maybe you can filter your files {doc, pdf, rtf} and depending of it's kind
open up in the proper app.
Assuming that you are using TextEdit for rtf docs, I don't know any way to
gat this info, I can see nothing in the dictionary


Carlos Ysunza B.
Director
Ysunza/Santiago
Comunicación Visual € Automatización
Tel. (52)55 5256-0336
email@hidden

http://www.ysunzasantiago.com
http://www.thesecretmexico.com
http://www.softrobot.com.mx


> From: Ignacio Russell <email@hidden>
> Date: Wed, 22 Aug 2007 02:03:19 +0200
> To: <email@hidden>
> Subject: Filtering by author and file
>
> Hi all,
>
> I'm new to Applescript and I'm trying to write a script to put some
> order classifying some files. I'm currently using Automator for this,
> but I would rather use Applescript because Automator seems to be a bit
> painful for this: many actions.
>
> However, I cannot find any references to classify by author of a file
> (rtf, doc and pdf) and type of file. All I have so far is this (no
> laughs, I'm new to this):
>
> tell application "Finder"
> move (every file of folder "HD:Users:TheToolShed:Desktop:prueba"
> whose file type is (doc)) to folder "HD:Users:TheToolShed:Desktop:doc"
> end tell
>
> What I want to make is this:
>
> move every file in public folder whose author is 1 AND whose format is
> pdf- move it to pdf folder
> move every file in public folder whose author is 1 AND whose format is
> doc- move it to doc folder
> etc
>
> I cannot find any commands regarding to authors, and my example does
> not compile. Can anyone help me?
>
> Ignacio
>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Filtering by author and file (From: "Ignacio Russell" <email@hidden>)

  • Prev by Date: Re: Does a filepath exist? [NOISE]
  • Next by Date: Re: working with records
  • Previous by thread: Re: Filtering by author and file
  • Next by thread: Re: author and filetype
  • Index(es):
    • Date
    • Thread