Create a folder that inside is in list view and smallest font?

I hope this is simple,
Using Applescript I want to be able to make a folder That when I open it, is in the list mode and using the smalles font (8). Could be useful if I can even specify where on the screen i want it to open and the size of that window. list and font are however more important.
Matt

Running the above script as you are aware works with no problems, I tried adapting it to me exist script where applescript creates the folder earlier so I referenced it with the same script and although no error there is no change on the folder.
I've tried to shorten the script here
set thePrefix to ""
set theWeekNumber to ""
set theMonth to ""
set thisDate to current date
---- your first week of the year is the third Monday of August
set theWeekNumber to ((thisDate - (my augustThirdWeek(thisDate))) div 604800) + 1
on augustThirdWeek(d) -- get the third monday of August
          copy d to tDate
          tell tDate
                    set {its day, its month, its time} to {15, 8, 0} -- start at August 15
                    repeat 2 times
                              repeat while (its weekday) is not Monday
                                        set its day to (its day) + 1 -- add one day (range 16 ... 21)
                              end repeat
                              if d < it then -- this date is older that the third Monday of August
                                        set {its day, its year} to {15, (its year) - 1} -- subtract one year
                              else
                                        return it
                              end if
                    end repeat
          end tell
end augustThirdWeek
set theWeekNumber to theWeekNumber
repeat
  --set theWeekNumber to do shell script "date -v+133d +%V"
          set theMonth to do shell script "date '+%m %B'"
          set quartersToUse to choose from list {"AW12", "AW13", "SS12", "SS13", "XMAS_2012"} with prompt "Choose the quarter."
          try
                    if theWeekNumber = "" then error
                    exit repeat
          on error
                    set thePrefix to "INVALID ENTRY!  "
          end try
end repeat
set bhsIcon to (((path to pictures folder) as text) & "Icons:Bhs.png") as alias
set bhs2doIcon to (((path to pictures folder) as text) & "Icons:Bhs2do.png") as alias
-- some more folder icons created here
set theBhs to "BHS_WK" & theWeekNumber
set theBurton to "Burton_WK" & theWeekNumber + 1
--some more folders created here
tell application "Finder"
          set theBHSFolder1 to make folder at (path to desktop) with properties {name:theBhs & theEnd}
          my (setCustomIcon from bhsIcon to the result)
          set desktop position of theBHSFolder1 to {50, 150}
          set theBHSFolder2 to make folder at (path to desktop) with properties {name:theEnd2 & theBhs}
          my (setCustomIcon from bhs2doIcon to the result)
  -- Some more like above
  --then I inserted your bit here
          set bhs2DoWindow to container window of theBHSFolder2
          set properties of theBHSFolder2 to ¬
                    {current view:list view, position:{100, 100}, bounds:{100, 100, 400, 300}}
          tell list view options of bhs2DoWindow to set properties to {text size:10}
end tell
--Then a custom Icon creation here
to setCustomIcon from imageFile to destination
          Set the icon of a destination file item to the image contained in imageFile
                    parameters -                    imageFile [various]:          an imagefile for the icon (Finder alias or POSIX text)
                                                  destination [various]:          a destination item to set to the icon (Finder alias or POSIX text)
                    returns [boolean]:          true if icon is set, false otherwise
          set imageFile to imageFile as text
          if imageFile starts with "/" then -- check for POSIX file
                    set imageFile to imageFile as POSIX file as alias
          else
                    set imageFile to imageFile as alias
          end if
          set destination to destination as text
          if destination does not start with "/" then -- check for POSIX file
                    set destination to POSIX path of destination
          end if
          try
                    tell application "Finder" -- copy the icon image to a temporary file
                              (duplicate imageFile to (path to temporary items) with replacing) as alias
                              set tempImage to quoted form of POSIX path of the result
                    end tell
                    set tempResource to quoted form of (POSIX path of (((path to temporary items) as text) & "TempResource"))
  do shell script "/usr/bin/sips -i " & tempImage -- add a Finder icon to the image
                    do shell script "/Developer/Tools/DeRez -only icns " & tempImage & " > " & tempResource -- get the icon resource
  do shell script "/usr/bin/file " & quoted form of destination -- determine the destination file type
                    if the result contains "directory" then -- folder
                              set theTarget to quoted form of (destination & "/Icon" & return) -- create Icon\r file
                              set Command to "rm " & theTarget & "; " -- remove any existing custom icon
                              set Command to Command & "/Developer/Tools/Rez -a " & tempResource & " -o " & theTarget & "; " -- add resource file to a folder
                              set Command to Command & "/Developer/Tools/SetFile -a V " & theTarget & "; " -- make it invisible
                    else -- file
                              set Command to "/Developer/Tools/Rez -a " & tempResource & " -o " & quoted form of destination & "; " -- add resource to a file
                    end if
                    set Command to Command & "/Developer/Tools/SetFile -a C " & quoted form of destination -- set custom icon attribute
  do shell script Command -- do it
          on error errmess number errnum -- oops
  log errmess
  -- display alert "Error " & errnum message errmess buttons {"OK"}
                    return false
          end try
          try -- remove temporary files
  do shell script "rm " & tempImage & space & tempResource
          end try
          tell application "Finder" to update (destination as POSIX file)
          return true
end setCustomIcon

Similar Messages

  • I have created a folder that I can now Save to and view in Photoshop (CS4) but cannot find in spotlight or any other way on my mac. PLEASE HELP!!

    I use Photoshop CS4, I do not think this problem is related to PS... I am not exactly sure what happened. I created a folder on desktop, think I changed name of it. Now it is not on desktop. I know the exact name of the folder and have tried doing a spotlight search and cannot locate it AS WELL as searching for a file by name EXACT as name is. However if I go into Photoshop I can open or "save as" and open the folder and save as a "recent location" and the folder and its contents are found no problem... however cannot see the pathway to know where the folder is located on my mac.. PLEASE HELP!!! Been using photoshop and my mac for MANY years and NEVER had a problem like this... I have a photo client awaiting their pictures to be burned on a cd and mailed to them!!
    THANK YOU!!
    Laurie

    Try this. Open one of your files. The window that contains your picture is named at the top. Command click on the name and you'll see the entire path starting with its name and then moving to the folder, the folder it is contained in, etc all the way to down to the hard drive volume name. This should tell you where to find the folder.

  • HT2798 I have a Mac OS 10.6.8 server in my classroom that I have networked to each student's account.  How do I create a folder that allows them to place their finished assignments in it, but does not allow them to go in and remove anything from that fold

    I have a Mac OS 10.6.8 server in my classroom that I have networked to student accounts on the iMacs in the room.  How do I create a folder that allows studnts to place their finished assignments in it, but does not allow them to go in and remove anything from that folder?

    You want a "Drop Box" style folder. You should be able to achieve this by creating a folder and giving it permissions similar to the "Drop Box" folder in your users Public Folder (i.e. write only permissions.)

  • How do I recover a folder that was accidently  put in trash and then deleted:

    How do I recover a folder that was accidently put in trash and deleted?

    If you don't have Time Machine enabled on your Mac you'll need to use a file recovery applicaiton like   SubrosaSoft FileSalvage.  FileSalvage had a demo mode to let you know what it can find and recover before you have to purchase it.  However, it won't be able to recover the folder, only the files in the folder. 
    Other possible file recovery applications can be found at MacUpdate.com by searching there for "file recovery".
    OT

  • Does adobe muse allow me to create a website that is responsive across all browsers and all devices?

    Does adobe muse allow me to create a website that is responsive across all browsers and all devices?

    We do not suport responsive layouts currently, instead you can design mobile specific (and tablet specific) layouts in an easy fashion. http://helpx.adobe.com/muse/tutorials/creating-mobile-layout-designs-muse.html  -j

  • What is the differenec between 'sap list viewer' and 'abap list viewer'

    hi
    what is the differenec between 'sap list viewer' and 'abap list viewer'

    Hi,
    There is no difference between them.SAP List Viewer (ALV) is the new name of the ABAP List Viewer (ALV).
    The SAP List Viewer unifies and simplifies the use of lists in the R/3 System. A uniform user interface and list format is available for all lists. This prevents redundant functions.
    The SAP List Viewer can be used to view both single-level lists and multilevel sequential lists.
    Single-level lists contain any number of lines that have no hierarchical relationship to each other.
    Multilevel sequential lists consist of any number of lines that have two hierarchical levels. Multilevel lists have header rows and item rows; the item rows are subordinate to the header rows. For each header row there can be any number of subordinate item rows.
    You can view subtotals and totals rows in both single-level lists and multilevel sequential lists
    From End User Point it is SAP LIST viewer , From Developer Point of View it is ALV .
    Check the Below Link
    http://help.sap.com/saphelp_nw04/helpdata/en/66/bc7aab43c211d182b30000e829fbfe/frameset.htm
    Regards,
    Satish

  • Does Tiger let me create a folder that...

    ...acts like a Smart Folder, but only contains files I specifically drag into it?
    I want a folder on my desktop that contains items I often need instant access to, like a certain mov or pdf file. The actual file must sit neatly in its folder hiearchy on my hard drive, while my instant access folder contains just a pointer (shortcut/alias) to it.
    Preferably, I'd like to drag files into the folder and have the folder automatically create an alias inside the folder, similar to how the OS X dock creates and holds references to applications. Can a folder that does something like this be made?

    Why don't you just create an alias when you drag the file to the folder? - hold Cmd and Option while dragging.

  • Is there a way I can create a folder that contains images from many different catalogs?

    Id like to be able to put all of my select images in one folder so I can easily find images to develope at any given time.

    Do you have 1000s of photos per day every day, so millions of images in total?
    I have 1.5 years of shooting in 1 catalog, as many images as fit on my external drive, about 50,000, and all are divided into separate folders by day and subject, having folder names with date_event/subject/location format, sometimes several per day,  i.e.  2013-07-04_Fireworks, 2013-12-25_ChristmasMorning.  This allows me to find a subject or event quickly using merely a file-system search operation without having to open my catalog.    Because I automatically save XMP files for each image, I can even open a folder in Bridge and see my edits for just that folder without going into LR.
    When my hard-drive fills up, I Export-as-Catalog a month or a quarter’s worth of images in their own catalog and remove them out of the current catalog, and moving those images and their corresponding catalog to a pair of archival hard-drives.  I also keep a separate catalog for important events—I mostly do just personal photohobbyist shooting, but occasionally something else.
    If you currently have your daily images separated by folder, already, then create a new, empty catalog and import the daily catalogs into it, perhaps renaming the folders from within LR, as you go, so they contain the date and subject of the images, if that daily categorization is important to you.   Having them split by days at the folder level is fine, but having catalogs also split by days seems like organizing a 600 page book into 600 2-page books, one page of text and one page of index entries.
    You can do just a few to start with, and work backwards in time, as you have time. 
    I should say that when I first started shooting with a digital camera, I categorized things by subject: dogs, children, whatever-park, downtown, nightlife, astronomy, etc, maybe a dozen categories, and just dumped all the pictures into those folders.  Eventually I started to take too many pictures and there were too many in each folder, so I started categorizing by date and subject, which helped immensely.  This was before LR existed, but once it did, I just imported everything into a catalog, using drag-and-drop and had everything in once place but still separated by folders.

  • How to create Smart Folder that limits search to a specific folder or drive

    I've been playing with Smart Folders in Leopard 10.5.5. I would like to create a smart folder that limit the search to only a specific folder where I keep all of my work related files. I cannot figure a way how to do this.
    Any suggestions?
    Thanks.
    Bud James

    1.) Performed Archive and Install. This did not correct the problem.
    2.) Performed clean install to new hard drive. This corrected the problem.
    3.) Performed a user migration (to the fresh new OS and new HD) using the migration utility and the problem returned.
    So it seems pretty clear that there is something related to my user identity that is causing the problem. I called Apple tech support but they were not able to resolve the problem.
    Sure, I can just create a new user and spend the next week or so reinstalling a bunch of software...but certainly based on the description of the problem (and the trouble shooting that I have already performed) someone at Apple should be able to pinpoint what files I need to delete or replace to correct this problem.

  • Can I create a folder that will automatically update files changed on a USB stick?

    Hi,
    I am just wondering if there is a way to do this.
    here's the situation, and what I'd like to happen.
    I have a folder on a USB thumb drive with files in
    A file within the set of folders is changed (on, for example, a college computer)
    When I connect my USB to my Mac, the file that was changed on the college computer, then replaces the same file on my Mac so they're both the same version.
    Basically, a syncronised folder so that all of my work that is changed on my USB will then be changed on my Mac automatically so that if I lose my keys and USB, I still have all of my work.
    Maybe there's an AppleScript that would work?
    Thank you in advance!
    Sam

    You should discuss with your college the licensing there.  If they have any Macs, it is essential they have this software in anycase.

  • List View : Opening folder in folder changes modified date in list view

    Since my office upgraded me to 10.5.4, when I flip open a folder in List View, then flip open a sub-folder, the modified date in the original folder changes to now. Opening subsequent folders again changes the modified date of the folder above it. I do not remember this happening in Tiger, and since part of my job involves finding and archiving old files, this is driving me crazy. Can I stop it?
    Jeff Work

    That's interesting, and probably why the original poster had the same issue, but it does not work that way for me with Leopard 10.5.5.
    In list view, the .DS_Store does not get updated when I flip down the folder. The .DS_Store file only gets updated if I open the folder in icon view. That makes sense because the .DS_Store file stores the relative position of the icons in the window.
    However, when I go back to list view, even though the .DS_Store file is updated to the current data and time, the Date Modified of the parent folder does not change.
    This different may be caused by some setting you are using in Finder that most people do not use, or maybe because of some other Mac OS X feature such as File Vault (which I do not use), or maybe some third party software that modifies Finder functionality. I don't know...

  • How do i create a website that allows customer to upload images and text?

    I need some help i have a friend who has asked me if i can create a website that allows them to upload their own images and text at their leisure.
    His company is in the car sales trade so they need to regularly be updating their stock, and this needs to be done by somebody with limited computer knowledge so ease of use is fairly important.
    I am using dreamweaver cs4 on a G5 Imac running Snow leopard 10.6.8, my skills are limited to creating uncomplicated websites but i am very keen to learn, i am aware of content management systems such as Druplal but have zero knowledge on how to use these.
    Any assistance would be greatly appreciated
    Andy Barrington
    www.andybarrington.com

    You can take a read here
    http://www.hotscripts.com/category/php/scripts-programs/classified-ads/autos/
    http://icloudcenter.com/auto-dealer-car-sales-script.htm
    Although putting together a form that would upload images and all the descriptions required seems like a fairly straghtforward project, depending on your current skill set.
    Gary

  • Create a contact that will dial an external conference and enter a pin, using Lync

    Greetings!
    Let me describe a scenario.
    On my cellphone, I can create a contact that will dial an external conference number that is not a Lync Meeting, insert a pause (with commas) enter a pin with a # at the end, because that particular conference system asks for pin followed by #.
    The phone number for that contact on my phone is   18005551212,,,,1234#
    Is there a way to do something similar to a Lync contact? or, as an Outlook contact that will pause and then enter the pin chars?
    Well, thanks very much for reading my question!

    Landis said no a while back:
    http://social.technet.microsoft.com/Forums/lync/en-US/794fb7a5-f55e-4ca7-8f2e-d6264d7607f0/lync-conference-id-automatic-dialing?forum=ocsclients 
    And I don't believe that's changed.  Effectively, the number you typed for the contact isn't what's sent.  That gets normalized into what's sent.  I think the only way to send pauses between DTMF is manually through the dialpad.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications

  • Can i plz get some help, i need to create a vi that gives equation of straight line and graphs

     a vi that inputs two set of coordinates and computes the equation of the straight line joining these two sets of coordinates and graphs this line, and then i must compute the equation of a line perpendicular to this line and passes through (x3,y3) and graph this line.

    You should try to learn Labview basics before trying to tackle a Labview program.  I'll give you a head start because you are probably under some time constraint.  Try to code this and then ask for help when you need it.
    To start you off, use a For Loop.  Your graph will be finite, so wire in a reasonable number into the N terminal of the loop.  Use the i terminal as your X input and calculate Y for each X.  The output of the loop will be an array of Y values.  You can graph those values. 
    Learn how to post your vi here.  There are several ways.  The best is to use Laabview 2009 and create a code snipet (look under the Edit menu).  Then add the snipet to your post by clicking the Upload or Insert Image icon above (the icon looks like a tree).  You can add the vi directley by clicking on Add Attachments below the Tags box.  Be sure to state which version of Labview you are using.
    - tbob
    Inventor of the WORM Global

  • Calendar list view and search go back only 1 year

    I have a new iPhone 4S (IOS5).  Calendar List view shows entries only back to a year ago, yet Day, Month and Week views show all my entries going back to Oct 2008.  Perhaps related:  the monthly views in Reminders also go back just one year.  A friend with an iPhone 4 and upgraded to IOS5 doesn't have this problem (with her Calendar;  I don't know about her Reminders).
    The problem also affects my global (Spotlight) searches as well, so I can't find entries earlier than Oct 2010.  Is there some setting I have that may be causing this?
    I should say that this problem existed for me on my 3G phone that I just replaced with the 4GS.  But all the other Calendar problems I had with the old phone and IOS4 appear to be fixed.  Only the one described above remains.
    One more thing:  My PC is Windows and I don't sync my Calendars with Outlook (or anything else, of course).  When I used to do that I would get duplicate entries and other problems.  (If I need to restore a lost Calendar entry, I'll use my iPhone backup, which runs every night when I sync my phone).
    Is this a known Calendar problem still existing with IOS5?

    FYI for those equally frustrated, I did place this in Feedback - not that it will result in an answer anytime soon. Why don't you do it too - get some momentum on this!

Maybe you are looking for

  • How do I link to a .pdf file in a blog post?

    I have a created a new blog post and want to link to a .pdf file.  I have the file loaded to the file manager but when I click on the link icon in the editor the only files that show up are web pages. Is there a way to link to a file other than setti

  • Malfunctioning iPod, not being recognized by the computer. Why?

    Ok, yesterday I wanted to update my iPod so I plugged it in and I got an error message about my USB malfunctioning and then my ipod was frozen on "do not disconnect". I unfroze it and tried again. Same thing. Then I changed ports and same problem. I

  • How to use airplay using itunes 12.0.1.26

    I updated itunes with 12.0.1.26 and there is no airplay icon.  bonjour is now working. can you help? Thanks Jack Faust

  • New line in SQL plus

    Hi all, I would like to include content with a new line into an column of a table. I would like to run the script through SQL plus but because I want a new line in this content, SQL plus determines it as the end of the query. e.g. update <tablename>

  • How do I get javadoc to open in window rather than tab?

    Hi, Does anyone know how to get javadoc to open in a new window rather than a tab? Thanks, Will Message was edited by: decuser