Making and opening folder with applescript

I'm trying to create and open a folder with applescript, but my script gives an error...
This is what i've written but can't figure out what i'm doing wrong. I hope you can help me!
tell application "Finder"
activate
          set the_folder to "106_WDJZ Eigen Magazine 20pp_Foto"
          set myfolder to make new folder at "Press4:10. Specials:N19. WDJZ Eigen Magazine 20pp:F. Foto:" with properties {name:the_folder}
          set openmap to (myfolder & the_folder)
end tell
Thank you very much in advance

Thank you both for your awnsers. I really appreciate it! I was trying to create a folder (at "Press4:10. Specials:N19. WDJZ Eigen Magazine 20pp:F. Foto:") with a name (106_WDJZ Eigen Magazine 20pp_Foto) and after the folder is created I want the scrpt to open the folder.
The in FileMakerPro (calculated) applescript is now working and look like this:
"tell application \"Finder\"" & ¶ &
"set the_folder to \"" & Editie_standaardgegevens::UitgaveID & "_" & Editie_standaardgegevens::Editienaam_intern & "_Foto" & "\"" & ¶ &
"set sub_folder to \"Press4:10. Specials:" & Editie_standaardgegevens::Editienaam_intern_totaal & ":F. Foto:\"" & ¶ &
"set myfolder to make new folder at sub_folder with properties {name:the_folder}" & ¶ &
"set openfolder to (sub_folder & the_folder & \":\")" & ¶ &
"open folder openfolder" & ¶ &
"activate" & ¶ &
"end tell"

Similar Messages

  • Installed iTunes on new pc and opened folder with all my music. Where have my personal playsits gone

    Installed iTunes on new pc and opened folder with all my music. Where have my personal playsits gone.
    Oddly enough, the music app with Windows 8 can see the playlists, but not iTunes.

    Sync with new computer
    https://discussions.apple.com/docs/DOC-3141

  • At startup I get grey screen and a folder with a flashing question mark.  How do I reset my MacBook Pro to the manufacture defaults?

    At startup I get grey screen and a folder with a flashing question mark.  How do I reset my MacBook Pro to the manufacture defaults?

    Click here and follow the instructions. If the computer originally shipped with Mac OS X 10.6.8 or earlier, when you reach step 5, insert its original disk, restart with the C key held down, use the Disk Utility to erase the internal drive, and install a fresh OS.
    (113954)

  • I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    That is because you don't have a web server configured and running to serve the html page. In order to see the page in a browser you need to access it using a url similar to http://localhost/~yourUserName if you are serving the page from your user account.
    Prior to Mountain Lion you could go into web sharing and turn on the web server. With Mountain Lion there is no option, other than using terminal, to turn on the web server. The web sharing menu item has been removed in Mountain Lion. Apache is still on your computer but it will take a little searching these forums or the Internet to find how to turn it on.
    If you want a graphic user interface to turn on/off the Apache server you could download and install a server application like xampp, http://www.apachefriends.org/en/xampp.html. I use this and it works well.

  • When i recieve an email and open it with firefox there is no option for translate in greek so i can not understand what the email is about. please help me

    Hello any time an email come and open it with firefox i can not translate it in to greek i can not find where is this option too. please help me and thank you very much

    in the next link http://translate.google.gr/?hl=el&tab=wT copy and paste the text you want to translate in greek.
    thank you

  • Create Smart Folder with Applescript?

    Hi
    Is there a way to create a Smart Folder with Applescript?
    many thanks
    LJ

    thanks neil.
    one other question. once i've made this folder i'll want to use it.
    it occurs to me that i might not be able to use the same code to
    call the folder after it's been created since, while the date may
    be the same, the time won't be.
    how do i stored the new folder name as it's being created so that
    i can call it later in the script?
    thanks again,
    BabaG

  • I recently downloaded a series of instructional videos.  They are in mp4 format and rather large (~500MB on average).  When I try and open them with Quicktime (default) they will not play.  Are there file size restrictions?  Any suggestions would be great

    I recently downloaded a series of instructional videos.  They are in mp4 format and rather large (~500MB on average).  When I try and open them with Quicktime (default) they will not play.  Are there file size restrictions?  I have gone through all of the most recent software updates.  Any suggestions would be great.  Thanks.

    Try VLC Media Player.  It has a reputation for playing just about anything you throw at it.

  • My Macbook Air 2011 got a white screen and a folder with a question mark. I tried to press option+r and try to install the OS X Lion but it didn't show the disk Macintosh Hd

    My Macbook Air 2011 got a white screen and a folder with a question mark. I tried to press option+r and try to install the OS X Lion but it didn't show the disk Macintosh Hd

    You are using Snow Leopard so you have no OPTION+R shortcut. You need to boot the computer from your Snow Leopard DVD or USB flash drive.
    Reinstall OS X without erasing the drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.

  • Help! Macbook can't start up and a folder with a symbol "?" in it.

    my english is not good
    i hope u can understand what i said about the situation
    about 4 days ago,i opened a psd file in may mac,but my mac worked very hard at that moment.and the cursor turned like a coloful circle
    then i shut down the power
    after couple of hours i opened the computer again,but terrible thing happened
    it could't start up,just a blank screen, a folder with a symbol "?" in it.
    someone told me maybe there was something wrong with the hard drive
    so i put the system disk 1 into the computer and use the Disk Utility but it can not find my hard drive!!
    Disk Utility show that only a cd,no hard drive
    what happened with my mac? can anybody help me?
    Message was edited by: noirz

    thx ^_^
    i bought my mac in september last year so i still can get some care with my mac from apple inc.
    $1600 is too expensive and it's not my mistake about the situation.
    i found many people have this problem: computer doesn't work -> shut down the power -> can't restart ->hard drive crashed
    so, don't u think the hard drive is too weakness? i've never got any problem like this when i use other computers
    sigh... the most important thing is send my computer to the service
    T_T ...pictures...movies...music...memory...etc..

  • Bug with workflow that creates a folder and sub folder with the same name.

    Hi,
    I've found a possible bug in SharePoint 2010 workflows. I only have access to SharePoint 2010 and SharePoint Designer 2010 over my companies intranet, afaik I don't have access to to logs or anything server side so sorry for the any missing information.
    I had some problems with a workflow in one list that needed to create some folders and subfolders in a second list. The production version did a lot more so I setup a test area with 1 list and a workflow that only does the folder creation part and have managed
    to consistently replicate this problem.
    The test list has two columns, [title] and [sub folder title]
    The workflow starts by getting the values for [title] and [sub folder title] into variables.
    It then creates a folder in the same list with the same name as [title], and then creates a sub folder under this with the name from [sub folder title]
    So the resulting structure would be:
    Test List:-
        List item with fields [title] and [sub folder title]
        [folder: title]:-
            [folder: sub folder title]
    If both folder names are different (e.g Folder1 and Folder2) then it works perfectly fine, if both folder names are the same (regardless of character case, e.g. samefolderName and sameFolderName) then the workflow fails.
    As part of the test i made the first action of the workflow to log the message "Workflow Started" to the history list. When the workflow fail there's nothing logged in the history list other than the error: "The workflow could not update the
    item, possibly because one or more columns for the item require a different type of information."
    Creating a sub folder with the same name as it's parent works fine manually but for some reason a workflow can't seem to do it in one action.
    As there's no history list entries before the error it looks like the workflow is just failing to start but if i do something like add an if statement to check if [title] and [sub folder title] are the same, and only create the subfolder when they are not
    then it runs fine doing what it's set to.
    The function of the workflow in our office was for convenience so were just working without it. Just wanted to post to see if anyone else has come across this/could try to replicate or explain this  and see if it's a SharePoint bug or something specific
    to our setup.
    thanks,
    Martin

    not sure about the specifics of your workflow, but if you're querying the list for the folders... keep in mind that a list lookup will only ever bring back ONE item... even if there are several items that meet the filter criteria... example: if i search
    a list for an item assigned to "john doe", there may be 15 tasks that meet the criteria, and it'll only grab one... this is why SP Designer WARNS you when your list lookup may exhibit this behavior.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Unable to open directly libreoffice files from firefox. The files have to be saved everytime and opened separately with libreoffice

    Firefox ver: Nightly for Ubuntu
    Unable to open attached libreoffice document & spreadsheet files in firefox. The files have to be saved and then opended with libreoffice later.
    Not facing the issue in Ubuntu 11.04

    What extensions do you have installed? To get a full list, do the following:
    In order to be able to find the correct solution to your problem, we require some more non-personal information from you. Please do the following:
    *Click the Firefox button at the top left, then click the ''Help'' menu and select ''Troubleshooting information'' from the submenu. If you don't have a Firefox button, click the Help menu at the top and select ''Troubleshooting information'' from the menu.
    Now, a new tab containing your troubleshooting information should open.
    *At the top of the page, you should see a button that says "Copy all to clipboard''. Click it.
    *Now, go back to your forum post and click inside the reply box. Press Ctrl+V to paste all the information you copied into the forum post.
    If you need further information about the Troubleshooting information page, please read the article [[Using the Troubleshooting Information page]].
    Thanks in advance for your help!

  • Start up with white page and a folder with ? plz help

    i just bought a macbook pro and the first time it started good, but the second time it stuck on the white page and have a folder with the ? on it, can anyone help me....??

    Click here..
    A flashing question mark appears when you start your Mac

  • Turned my mac book pro on and a folder with a question mark just flashes

    TTurned my Mac book pro laptop on and all I get is a flashing folder with a question mark on the screen

    Have you tried to boot in Safe Mode (keep the Shift key down while booting, until the Apple grey backdrop, spinning gear and progress bar appear)?
    If you can boot that way, it means some third-party software is causing problems.
    If not, try to boot in Single User mode (press the Command/Apple and S keys on startup), then type "fsck -y" (no quotes), press Enter.
    You should get a return such as:
    fsck_hfs: Volume is journaled. No checking performed.
    fsck_hfs: Use the -f option to force checking
    If you do, then your startup volume is accessible. Type "restart" (no quotes...), then press Enter.
    If not, you can try the following command:
    mount -u/w /
    (there's a space between mount and the dash, no space between the dash and u/w, and a space between u/w and the slash sign).
    There shouldn't be any visible return on screen after that command, but if you wait a few seconds, you could then enter the following command:
    systemstarter
    Then press Enter.
    That could suffice to boot your system, but still not the graphical user interface.
    When the prompt sign (#) returns, type "restart" (again, without the quotes), and press Enter.
    Tell us how it went.

  • Search and replace formulas with AppleScript

    Thanks to this forum I've found out that it is possible to search and replace text by other text or formulas with AppleScript in Numbers 3.2
    Does anybody have a script to search and replace a formula or a part of a formula by another formula or a partial formula.
    For example:
    I would like to be able to find:
    = Table1::$b$3
    and replace this by:
    = Table1::$b$4

    De Signature,
    Would this approach work for you...
    This is a very neat way edit a complex formula in a single cell....
    a) Copy and Paste the formula to a new black page in Pages,
    b) Do your Find and Replace, then
    c) Copy and Paste the formulae back into the cell in Numbers.
    It works like a charm.
    Here is an example of how I used this approach...
    Original cell formulae:
    =AVERAGE(
    SMALL(OFFSET(K3,1,0,20,1),1),SMALL(OFFSET(K3,1,0,20,1),2),
    SMALL(OFFSET(K3,1,0,20,1),3),SMALL(OFFSET(K3,1,0,20,1),4),
    SMALL(OFFSET(K3,1,0,20,1),5),SMALL(OFFSET(K3,1,0,20,1),6),
    SMALL(OFFSET(K3,1,0,20,1),7),SMALL(OFFSET(K3,1,0,20,1),8))
    Final version of formulae:
    =AVERAGE(
    SMALL(OFFSET(K3,N1,0,20,1),1),SMALL(OFFSET(K3,N1,0,20,1),2),
    SMALL(OFFSET(K3,N1,0,20,1),3),SMALL(OFFSET(K3,N1,0,20,1),4),
    SMALL(OFFSET(K3,N1,0,20,1),5),SMALL(OFFSET(K3,N1,0,20,1),6),
    SMALL(OFFSET(K3,N1,0,20,1),7),SMALL(OFFSET(K3,N1,0,20,1),8))
    Find Replace: be cautious with the Find, to ensure it is unique, in my this example ",1,", to avoid changing the" ,1)"
    Enjoy...

  • Powershell to create pop box which then creates a folder (with entered value) and sub folder with specific security

    Hi All,
    Complete novice to powershell would love some help to assist a new windows storage workflow I am implementing.
    I have a windows server 2012 file server (\\FS01) and projects share \\fs01\projects. 
    We use job numbers to create a project and name the folders with the job num (eg Job Num XX12345 , \\fs01\projects\XX12345)
    Then after each project folder is created we will create 4 subfolders underneath and specify the following rights to the following AD groups.
    Folder Name - AD Group- Permission
    Scoping - Project_Management -RW
    Delivery - Project_Management -R
    Finance - Finance- RW
    Assets - Creative - R
    I would like to create a script that lives in the route of \\FS01\Projects and when clicked a pop up box appears, the end users enters the job code  and then the script sets up the folder with the entered value and creates sub folders with the referenced
    AD groups and security.
    Any help would be awesome!
    Sammy

    Start by learning how to write PowerShell scripts.  What you are asking is a whole complex list of requirements.  This is a forum and not free consulting or training.
    Workflows are complex beasts that require a good knowledge of PowerShell.  Now is the time to start your training.  I recommend starting with a good book and taking your time learning PowerShell step-by-step.
    ¯\_(ツ)_/¯

Maybe you are looking for